(self)
Returns the observation specification for this environment.

    Infers the spec from the observation, unless the Task implements the
    `observation_spec` method.

    Returns:
      An dict mapping observation name to `ArraySpec` containing observation
      shape and dtype.
Returns the observation specification for this environment.
Returns the observation specification for this environment .
def observation_spec(self):
    """Returns the observation specification for this environment.

    Infers the spec from the observation, unless the Task implements the
    `observation_spec` method.

    Returns:
      An dict mapping observation name to `ArraySpec` containing observation
      shape and dtype.
    """
    try:
      return self._task.observation_spec(self._physics)
    except NotImplementedError:
      observation = self._task.get_observation(self._physics)
      if self._flat_observation:
        observation = flatten_observation(observation)
      return _spec_from_observation(observation)
def observation_spec ( self ) : try : return self . _task . observation_spec ( self . _physics ) except NotImplementedError : observation = self . _task . get_observation ( self . _physics ) if self . _flat_observation : observation = flatten_observation ( observation ) return _spec_from_observation ( observation )