class_docstr: Removes redundant axes from the observation, which are axes with a dimension of 1.
code: def validate_input_observation_space(
      self, input_observation_space: ObservationSpace
  ):
      if self.axis is None:
          return
  
      shape = input_observation_space.shape
      if self.axis >= len(shape) or self.axis < -len(shape):
          raise ValueError(
              "The given axis does not exist in the context of the input observation shape. "
          )
  
file_path: coach/rl_coach/filters/observation/observation_squeeze_filter.py
imports: import numpy
  from rl_coach.core_types import ObservationType
  from rl_coach.filters.observation.observation_filter import ObservationFilter
  from rl_coach.spaces import ObservationSpace
label_desc: Use image node_id 2 for calling the ObservationSqueezeFilter obj's underlying member method code with example usage: obj.validate_input_observation_space(input_observation_space) without return types