The concept of AI taking over the world refers to a hypothetical scenario in which highly advanced AI systems gain…