The idea of artificial intelligence overcoming humans has long been the subject of science fiction. Films like Metropolis (1927) and…