code: def dataclass_repr(
      obj: Any,
      indent: int = 0,
      width: int = 80,
  ) -> str:
      # built-in pprint module support dataclasses from python 3.10
      if sys.version_info >= (3, 10):
          from pprint import pformat
  
          return pformat(obj, indent, width)
  
      return _pformat(obj, indent=indent, width=width)
  
imports: import contextlib
  import functools
  import hashlib
  import os
  import re
  import sys
  import textwrap
  from argparse import Namespace
  from dataclasses import fields, is_dataclass
  from enum import auto, Enum
  from typing import Any, Callable, Dict, Generic, Iterable, Iterator, List, Literal, NoReturn, Optional, Sequence, Set, Tuple, TypeVar, Union
  from typing_extensions import Self
  from torchgen.code_template import CodeTemplate
label_desc: Use image node_id 9 for calling a global function with example usage: dataclass_repr(obj, indent, width) and returns: _pformat, pformat