code: def get_all_configs_from_hydra(
      default_conf: str, all_hydra_config_modules: List[str]
  ) -> List[pytest.param]:
      """Enumerate all environment configurations from the Hydra options.
  
      :param default_conf: The name of the default config
      :param all_hydra_config_modules: A list of hydra config modules
      :return A list of pytest.param objects, to be used with   @pytest.mark.parametrize
      """
      configs = []
  
      for config_module in all_hydra_config_modules:
          # setup Hydra for the given config module
          with initialize_config_module(config_module):
              # query all argument overrides for this config module
              for overrides in _get_all_overrides_from_hydra():
                  # add a single combination of module and hydra arguments to the list
                  config = pytest.param(
                      config_module,
                      default_conf,
                      overrides,
                      id="-".join(overrides.values()),
                  )
                  configs.append(config)
  
      return configs
  
imports: from typing import List, Dict
  import pytest
  from hydra.core.global_hydra import GlobalHydra
  from hydra import initialize_config_module, compose
  from omegaconf import DictConfig
  from torch import nn
  from maze.core.env.structured_env import StructuredEnv
  from maze.core.env.structured_env_spaces_mixin import StructuredEnvSpacesMixin
  from maze.core.utils.config_utils import make_env_from_hydra, EnvFactory
  from maze.core.utils.factory import Factory
  from maze.core.wrappers.observation_normalization.observation_normalization_utils import obtain_normalization_statistics
  from maze.core.wrappers.observation_normalization.observation_normalization_wrapper import ObservationNormalizationWrapper
  from maze.maze_cli import maze_run
  from maze.perception.models.model_composer import BaseModelComposer
label_desc: Use image node_id 2 for calling a global function with example usage: get_all_configs_from_hydra(default_conf, all_hydra_config_modules) and returns: configs