code: def set_access_cfg(cfg: "DictConfig"):
      if cfg is None or not isinstance(cfg, DictConfig):
          raise TypeError(f"cfg must be a DictConfig")
      global _ACCESS_CFG
      _ACCESS_CFG = cfg
  
file_path: NeMo/nemo/core/classes/mixins/access_mixins.py
imports: from abc import ABC
  from typing import Optional
  import torch
  from omegaconf import DictConfig
label_desc: Use image node_id 1 for calling a global function with example usage: set_access_cfg(cfg) without return types