class_docstr: Allows access to output of intermediate layers of a model
class_docstr_tok: ["Allows","access","to","output","of","intermediate","layers","of","a","model"]
docstr: Extract all registries from named submodules, return dictionary where
  the keys are the flattened module names, the values are the internal registry
  of each such module.
docstr_tok: ["Extract","all","registries","from","named","submodules",",","return","dictionary","where","the","keys","are","the","flattened","module","names",",","the","values","are","the","internal","registry","of","each","such","module","."]
code: def get_module_registry(cls, module: torch.nn.Module):
      """
      Extract all registries from named submodules, return dictionary where
      the keys are the flattened module names, the values are the internal registry
      of each such module.
      """
      module_registry = {}
      for name, m in module.named_modules():
          if hasattr(m, "_registry") and len(m._registry) > 0:
              module_registry[name] = m._registry
      return module_registry
  
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 3 for calling the AccessMixin obj's underlying member method code with example usage: obj.get_module_registry(cls, module) and returns: module_registry