original_docstring: 
          Each family of environments have their own type of observations and actions.
          You can add support for more families here by modifying obs_dim and act_dim.
          
docstring: Each family of environments have their own type of observations and actions.
  You can add support for more families here by modifying obs_dim and act_dim.
docstring_tokens: Each family of environments have their own type of observations and actions . You can add support for more families here by modifying obs_dim and act_dim .
code: def create_env_spec(self, env_name, **kwargs):
          """
          Each family of environments have their own type of observations and actions.
          You can add support for more families here by modifying obs_dim and act_dim.
          """
          if self._env_family in ["classic"]:
              obs_dim = [
                  space["observation"].shape
                  for space in self._env.observation_spaces.values()
              ]
          elif self._env_family in ["sisl"]:
              obs_dim = [space.shape for space in self._env.observation_spaces.values()]
          else:
              raise ValueError(
                  f"Hive does not support {self._env_family} environments from PettingZoo yet."
              )
          act_dim = [space.n for space in self._env.action_spaces.values()]
          return EnvSpec(
              env_name=env_name,
              obs_dim=obs_dim,
              act_dim=act_dim,
          )
code_tokens: def create_env_spec ( self , env_name , ** kwargs ) : if self . _env_family in [ "classic" ] : obs_dim = [ space [ "observation" ] . shape for space in self . _env . observation_spaces . values ( ) ] elif self . _env_family in [ "sisl" ] : obs_dim = [ space . shape for space in self . _env . observation_spaces . values ( ) ] else : raise ValueError ( f"Hive does not support {self._env_family} environments from PettingZoo yet." ) act_dim = [ space . n for space in self . _env . action_spaces . values ( ) ] return EnvSpec ( env_name = env_name , obs_dim = obs_dim , act_dim = act_dim , )
short_docstring: Each family of environments have their own type of observations and actions.
short_docstring_tokens: Each family of environments have their own type of observations and actions .
comment: """
          Each family of environments have their own type of observations and actions.
          You can add support for more families here by modifying obs_dim and act_dim.
          """