code: def __init__(self, env):
      super().__init__()
      self.env = env
      self._skip_env_checking = True
      # Agent IDs are ints, starting from 0.
      self.num_agents = self.env.num_players()
      # Store the open-spiel game type.
      self.type = self.env.get_type()
      # Stores the current open-spiel game state.
      self.state = None
  
      # Extract observation- and action spaces from game.
      self.observation_space = Box(
          float("-inf"),
          float("inf"),
          (self.env.observation_tensor_size(),),
      )
      self.action_space = Discrete(self.env.num_distinct_actions())
  
file_path: ray/python/ray/rllib/env/wrappers/open_spiel.py
imports: from typing import Optional
  import numpy
  from gymnasium.spaces import Box, Discrete
  from ray.rllib.env.multi_agent_env import MultiAgentEnv
  from ray.rllib.env.utils import try_import_pyspiel
label_desc: Use image node_id 1 to create a new OpenSpielEnv object from inherited base classes: MultiAgentEnv with example: obj = OpenSpielEnv(env)