code: def env_registration_test(
      environment_type: type,
      wrapper_factory: Callable[[], ObservationNormalizationWrapper],
  ) -> None:
      """Tests initiation of an environment with normalization observation.
  
      :param environment_type: Environment type to assert for.
      :param wrapper_factory: A factory instantiating a observation normalized environment.
      """
  
      env: ObservationNormalizationWrapper = wrapper_factory()
  
      assert isinstance(env, environment_type)
      assert isinstance(env, ObservationNormalizationWrapper)
  
      env.close()
  
file_path: maze/maze/test/shared_test_utils/observation_normalization.py
imports: from functools import partial
  from typing import Dict, Callable, Iterable
  import gym
  import numpy
  from maze.core.env.maze_env import CoreEnvType
  from maze.core.env.structured_env import StructuredEnv
  from maze.core.utils.factory import ConfigType
  from maze.core.wrappers.observation_normalization.observation_normalization_wrapper import ObservationNormalizationWrapper
label_desc: Use image node_id 5 for calling a global function with example usage: env_registration_test(environment_type, wrapper_factory) without return types