code: def test_instantiation_with_wrapper_factory():
      """
      Test instantiation, types and parsing for/of a wrapped (VR) environment.
      """
  
      # Register dummy wrappers.
      registry = WrapperFactory()
  
      default_config = load_env_config(
          dummy_wrappers_module,
          "dummy_env_config_with_dummy_wrappers.yml",
      )
      env_config = default_config["env"]
      env_config["core_env"] = {
          "_target_": DummyCoreEnvironment,
          "observation_space": ObservationConversion().space(),
      }
      env: Wrapper[MazeEnv] = registry.wrap_from_config(
          DummyEnvironment(**env_config), default_config["wrappers"]
      )
  
      # Make sure types are correctly inferred.
      assert isinstance(env, Wrapper)
      assert isinstance(env, DummyWrapper)
      assert isinstance(env, DummyWrapperA)
      assert isinstance(env, DummyWrapperB)
      assert isinstance(env, DummyEnvironment)
  
      # Check if arguments are set correctly and methods are available.
      assert getattr(env, "do_stuff")
      assert getattr(env, "arg_a")
      assert getattr(env, "arg_b")
      assert getattr(env, "arg_c")
      assert env.do_stuff() == "b"
  
file_path: maze/maze/test/core/wrappers/test_generic_wrapper_config.py
imports: from typing import TypeVar
  import maze.test.core.wrappers.dummy_wrappers
  from maze.core.env.maze_env import MazeEnv
  from maze.core.wrappers.wrapper import Wrapper
  from maze.core.wrappers.wrapper_factory import WrapperFactory
  from maze.test.core.wrappers.dummy_wrappers.dummy_wrapper_a import DummyWrapperA
  from maze.test.core.wrappers.dummy_wrappers.dummy_wrapper_b import DummyWrapperB
  from maze.test.core.wrappers.dummy_wrappers.dummy_wrappers import DummyWrapper
  from maze.test.shared_test_utils.config_testing_utils import load_env_config
  from maze.test.shared_test_utils.dummy_env.dummy_core_env import DummyCoreEnvironment
  from maze.test.shared_test_utils.dummy_env.dummy_maze_env import DummyEnvironment
  from maze.test.shared_test_utils.dummy_env.space_interfaces.observation_conversion.dict import ObservationConversion
label_desc: Use image node_id 1 for calling a global function with example usage: test_instantiation_with_wrapper_factory() without return types