code: def stringify(obj):
      if isinstance(obj, str):
          return f"'{obj}'"
  
      if not is_dataclass(obj) and not isinstance(
          obj, (Mapping, Iterable)
      ):
          return str(obj)
  
      start, end = (
          f"{type(obj).__name__}(",
          ")",
      )  # dicts, lists, and tuples will re-assign this
  
      if isinstance(obj, dict):
          start, end = "{}"
  
      elif isinstance(obj, list):
          start, end = "[]"
  
      elif isinstance(obj, tuple):
          start = "("
  
      return f"{start}...{end}"
  
file_path: life2vec/src/utils.py
imports: import warnings
  from pytorch_lightning import Callback, Trainer, profiler
  import importlib
  from typing import Any
  import json
  from collections.abc import Mapping, Iterable
  from dataclasses import is_dataclass, fields
label_desc: Use image node_id 3 for calling a global function with example usage: stringify(obj) and returns: start, str, end, str, obj, str, str