code: def _get_all_overrides_from_hydra() -> List[Dict[str, str]]:
      """Enumerate all environment configurations from Hydra
  
      Note that only configurations from the main config module are returned.
      I.e., if the main config module is `maze_envs.logistics.conf`, then, for envs, only envs listed
      under `maze_envs.logistics.conf.envs` are returned. (This is to ensure that if we are testing
      e.g. logistics envs, the other available environments do not get mixed in.)
      """
      config_sources = (
          GlobalHydra.instance().config_loader().get_sources()
      )
      main_config_source = list(
          filter(
              lambda source: source.provider == "main", config_sources
          )
      )[0]
      overrides = []
  
      for env in main_config_source.list("env", results_filter=None):
          overrides.append(dict(env=env))
  
      if main_config_source.exists("env_configuration"):
          for env_configuration in main_config_source.list(
              "env_configuration", results_filter=None
          ):
              env, configuration = env_configuration.split("-")
              overrides.append(
                  dict(env=env, configuration=configuration)
              )
  
      return overrides
  
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 1 for calling a global function with example usage: _get_all_overrides_from_hydra() and returns: overrides