class_docstr: Simple TicTacToe Env, starts the game randomly half of the time.
code: def __init__(self, strict=False):
      self.strict = strict
  
      # What about metadata and spec?
      self.reward_range = (-1.0, 1.0)
  
      # Action space -- 9 positions that we can chose to mark.
      self.action_space = spaces.Discrete(9)
  
      # Observation space -- this hopefully does what we need.
      self.observation_space = spaces.Box(
          low=-1, high=1, shape=(3, 3), dtype=np.int64
      )
  
      # Set the seed.
      self.np_random = None
      self.seed()
  
      # Start the game.
      self.board_state = None
      self.done = False
      self.reset()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import gym
  from gym import spaces
  from gym.utils import seeding
  import numpy
  from tensor2tensor.data_generators import problem
  from tensor2tensor.layers import modalities
  from tensor2tensor.rl import gym_utils
label_desc: Use image node_id 1 to create a new TicTacToeEnv object from inherited base classes: gym with example: obj = TicTacToeEnv(strict)