In July, South Africa granted a patent to an invention created by an artificial intelligence (AI) system, rather than a human being.