Hollywood has long been fascinated by artificial intelligence (AI), portraying it as a miraculously powerful force — for good and evil.