Could you write a Python program to simulate Conway's Game of Life?

Interview question asked to Machine Learning Engineers interviewing at Intercom, Chewy, GitLab and others: Could you write a Python program to simulate Conway's Game of Life?.