code: def recursive_getattr(model, module_name):
      """
      Recursively get the attribute of a module.
      Args:
          model (`torch.nn.Module`)
              The model to get the attribute from.
          module_name (`str`)
              The name of the module to get the attribute from.
      """
      split_list = module_name.split(".")
      output = model
      for name in split_list:
          output = getattr(output, name)
      return output
  
file_path: DeepSpeed/deepspeed/compression/helper.py
imports: import torch
  from .basic_layer import Embedding_Compress, LinearLayer_Compress, Conv2dLayer_Compress, BNLayer_Compress, ColumnParallelLinear_Compress, RowParallelLinear_Compress
  from .constants import *
  from deepspeed.utils import logger
label_desc: Use image node_id 1 for calling a global function with example usage: recursive_getattr(model, module_name) and returns: output