code: def recursive_setattr(model, module_name, module):
      """
      Recursively set the attribute of a module.
      Args:
          model (`torch.nn.Module`)
              The model to set the attribute in.
          module_name (`str`)
              The name of the module to set the attribute in.
          module (`torch.nn.Module`)
              The module to set the attribute to.
      """
      split_list = module_name.split(".")
      output = model
      for name in split_list[:-1]:
          output = getattr(output, name)
      output.__setattr__(split_list[-1], module)
  
file_path: H2O/h2o_flexgen/benchmark/third_party/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 *
label_desc: Use image node_id 2 for calling a global function with example usage: recursive_setattr(model, module_name, module) without return types