code: def _simplify_obj_name(obj) -> str:
      """Simplify the display strings of objects for the purpose of rendering within DataPipe error messages."""
      if inspect.isfunction(obj):
          return obj.__name__
      else:
          return repr(obj)
  
file_path: pytorch/torch/utils/data/datapipes/_hook_iterator.py
imports: import inspect
  import functools
  from enum import Enum
  import torch.autograd
label_desc: Use image node_id 1 for calling a global function with example usage: _simplify_obj_name(obj) and returns: obj, repr