code: def get(module, name_path):
      all_members = module.__all__ if hasattr(module, "__all__") else []
      all_members = sorted(all_members)
  
      outputs = {
          name: get(module, f"{name_path}.{name}")
          if isinstance(module, ModuleType)
          else Structure(
              obj=module,
              name_path=f"{name_path}.{name}",
              module_path=f"{module.__module__}.{name}",
              members=module.__all__
              if hasattr(module, "__all__")
              else [],
          )
          for module, name in (
              (getattr(module, name), name) for name in all_members
          )
      }
  
      return {k: v for k, v in outputs.items() if v}
  
file_path: elegy/scripts/update_docs.py
imports: import shutil
  import typing
  from dataclasses import dataclass
  from pathlib import Path
  from types import ModuleType
  import jax
  import jinja2
  import yaml
  import elegy
label_desc: Use image node_id 1 for calling a global function with example usage: get(module, name_path) and returns: unknown