code: def test_preprocessing_init_from_yaml_config():
      """Pre-processor unit test"""
  
      # load config
      config = load_env_config(
          test_preprocessing_module, "dummy_config_file.yml"
      )
  
      # init environment
      env = build_dummy_structured_environment()
      env = PreProcessingWrapper(env, **config["preprocessing_wrapper"])
      assert isinstance(env, PreProcessingWrapper)
  
      # test application of wrapper
      obs = env.reset()
      observation_keys = list(obs.keys())
  
      assert "observation_1_categorical_feature" not in observation_keys
      assert (
          "observation_1_categorical_feature-one_hot"
          not in observation_keys
      )
  
      for key in [
          "observation_0_feature_series",
          "observation_0_feature_series-dummy",
      ]:
          assert key in observation_keys
          assert obs[key] in env.observation_spaces_dict[0][key]
  
      obs = env.step(env.action_space.sample())[0]
      observation_keys = list(obs.keys())
  
      assert "observation_0_feature_series" not in observation_keys
      assert (
          "observation_0_feature_series-dummy" not in observation_keys
      )
      assert "observation_1_categorical_feature" not in observation_keys
  
      for key in ["observation_1_categorical_feature-one_hot"]:
          assert key in observation_keys
          assert obs[key] in env.observation_spaces_dict[1][key]
  
imports: import maze.test.core.wrappers.observation_preprocessing
  from maze.core.wrappers.observation_preprocessing.preprocessing_wrapper import PreProcessingWrapper
  from maze.test.core.wrappers.observation_preprocessing.preprocessor_testing_utils import build_dummy_structured_environment
  from maze.test.shared_test_utils.config_testing_utils import load_env_config
label_desc: Use image node_id 2 for calling a global function with example usage: test_preprocessing_init_from_yaml_config() without return types