code: def debug_extract_module_and_param_names(model):
      # extract the fully qualified names as soon as the model is acquired
      global module_names
      global param_names
      # XXX: can probably make a map of param2module and vice-versa
      module_names = {
          module: name for name, module in model.named_modules()
      }
      param_names = {
          param: name for name, param in model.named_parameters()
      }
  
file_path: DeepSpeed/deepspeed/utils/debug.py
label_desc: Use image node_id 2 for calling a global function with example usage: debug_extract_module_and_param_names(model) without return types