import gym import random env = gym.make('SpaceInvaders-v0') height, width, channels = env.observation_space.shape actions = env.action_space.n