code: def strip_overloads(gm):
      """
      Modifies the target of graph nodes in :attr:`gm` to strip overloads.
  
      Args:
          gm(fx.GraphModule): The input Fx graph module to be modified
      """
      for node in gm.graph.nodes:
          if isinstance(node.target, torch._ops.OpOverload):
              node.target = node.target.overloadpacket
      gm.recompile()
  
file_path: pytorch/torch/_functorch/compile_utils.py
imports: import torch
  import torch.fx
  from torch.utils._pytree import tree_flatten
  from torch.utils import _pytree
label_desc: Use image node_id 3 for calling a global function with example usage: strip_overloads(gm) without return types