class_docstr: An input filter is a module that filters the input from an environment to the agent.
class_docstr_tok: ["An","input","filter","is","a","module","that","filters","the","input","from","an","environment","to","the","agent","."]
docstr: Given the input observation space, returns the corresponding filtered observation space
  This function should not be updated!
  :param observation_name: the name of the observation to which we want to calculate the filtered space
  :param input_observation_space: the input observation space
  :return: the filtered observation space
code: def get_filtered_observation_space(
      self,
      observation_name: str,
      input_observation_space: ObservationSpace,
  ) -> ObservationSpace:
      """
      Given the input observation space, returns the corresponding filtered observation space
      This function should not be updated!
      :param observation_name: the name of the observation to which we want to calculate the filtered space
      :param input_observation_space: the input observation space
      :return: the filtered observation space
      """
      filtered_observation_space = copy.deepcopy(
          input_observation_space
      )
      if observation_name in self._observation_filters.keys():
          for filter in self._observation_filters[
              observation_name
          ].values():
              filter.validate_input_observation_space(
                  filtered_observation_space
              )
              filtered_observation_space = (
                  filter.get_filtered_observation_space(
                      filtered_observation_space
                  )
              )
      return filtered_observation_space
  
imports: import copy
  import os
  from collections import OrderedDict
  from copy import deepcopy
  from typing import Dict, Union, List
  from rl_coach.core_types import EnvResponse, ActionInfo, Transition
  from rl_coach.spaces import ActionSpace, RewardSpace, ObservationSpace
  from rl_coach.utils import force_list
label_desc: Use image node_id 6 for calling the InputFilter obj's underlying member method code with example usage: obj.get_filtered_observation_space(observation_name, input_observation_space) and returns: filtered_observation_space