code: def find_target(model, target_name):
      """
      Finds the module in model which is referenced by the target_name.
      target_name is in the form of `mod_a.mod_b.mod_c`
      """
      current_obj = model
      for attr in target_name.split("."):
          current_obj = getattr(current_obj, attr)
      return current_obj
  
imports: import operator
  from collections import defaultdict
  from enum import Enum
  from typing import Dict
  from typing import List
  from typing import Optional
  import torch
  import torch.ao.quantization
  import torch.fx
  from torch.ao.quantization.backend_config import BackendConfig
  from torch.ao.quantization.backend_config import ObservationType
  from coremltools.optimize.torch._utils.version_utils import is_torch_2
label_desc: Use image node_id 1 for calling a global function with example usage: find_target(model, target_name) and returns: current_obj