class_docstr: Helper class to instantiate an environment from configuration with the help of the Registry.
  
  :param env: environment configuration
  :param wrappers: collection of wrappers as configuration
class_docstr_tok: ["Helper","class","to","instantiate","an","environment","from","configuration","with","the","help","of","the","Registry",".",":","param","env",":","environment","configuration",":","param","wrappers",":","collection","of","wrappers","as","configuration"]
docstr: environment factory
  :return: Newly created environment instance.
docstr_tok: ["environment","factory",":","return",":","Newly","created","environment","instance","."]
code: def __call__(self, *args, **kwargs) -> MazeEnv:
      """environment factory
      :return: Newly created environment instance.
      """
      env = Factory(MazeEnv).instantiate(self.env)
      env = WrapperFactory.wrap_from_config(env, self.wrappers)
  
      return env
  
imports: import os
  from pathlib import Path
  from typing import Mapping, Union, Sequence
  import hydra
  import yaml
  from hydra import initialize_config_module, compose
  from hydra.core.hydra_config import HydraConfig
  from omegaconf import DictConfig
  from maze.core.agent.serialized_torch_policy import SerializedTorchPolicy
  from maze.core.env.maze_env import MazeEnv
  from maze.core.utils.factory import Factory, ConfigType, CollectionOfConfigType
  from maze.core.wrappers.wrapper_factory import WrapperFactory
label_desc: Use image node_id 2 for calling the EnvFactory obj's underlying member method code with example usage: obj.__call__() and returns: env