code: def get_global_config(key=None):
      config = registry.get("config")
      if config is None:
          configuration = Configuration()
          config = configuration.get_config()
          registry.register("config", config)
  
      if key:
          config = OmegaConf.select(config, key)
  
      return config
  
imports: import collections
  import json
  import logging
  import os
  import warnings
  from ast import literal_eval
  from typing import List
  import torch
  from mmf.common.registry import registry
  from mmf.utils.env import import_user_module
  from mmf.utils.file_io import PathManager
  from mmf.utils.general import get_absolute_path, get_mmf_root
  from omegaconf import DictConfig, errors, OmegaConf
label_desc: Use image node_id 6 for calling a global function with example usage: get_global_config(key) and returns: config