This article by Carlos E. Perez is a great introduction to artificial intelligence and levels of automation.
When something potentially dangerous was being manufactured or used, there a tendency to regulate these things. Examples include: dangerous substances, automatic calls, spamming, computer misuse, automatic trading, drones, genetic engineering, biological weapons, nuclear weapons.
Reaching level 5 and 6 (as described by Perez) of automation seems closer than ever (example, although it seems scripted, not "real"):
Level 5 (Fully Automated Process) -This is a final and future state where human involvement in the processes is not required. This of course may not be the final level because it does not assume that the process is capable of optimizing itself to make improvements.
Level 6 (Self Optimizing Process) -This is an automation that requires no human involvement and is also capable of improving itself over time.
Question: are there any countries that consider regulating advanced artificial intelligence?
Note: Referenced article mentions a starting point of how to regulate advanced artificial intelligence.