Leaders of the Group of Seven economic forum are expected to be joined by Pope Francis to discuss the threats of artificial intelligence.