code: def repr_(self: Any) -> str:
      """A clean repr for a class, excluding both values that are likely defaults,
      and those explicitly default for dataclasses.
      """
      classname = self.__class__.__name__
      # Most of the falsey value, but excluding 0 and 0.0, since those often have
      # semantic meaning within streamlit.
      defaults: list[Any] = [None, "", False, [], set(), dict()]
      if dataclasses.is_dataclass(self):
          fields_vals = (
              (f.name, getattr(self, f.name))
              for f in dataclasses.fields(self)
              if f.repr
              and getattr(self, f.name) != f.default
              and getattr(self, f.name) not in defaults
          )
      else:
          fields_vals = (
              (f, v)
              for (f, v) in self.__dict__.items()
              if v not in defaults
          )
  
      field_reprs = ", ".join(
          f"{field}={value!r}" for field, value in fields_vals
      )
      return f"{classname}({field_reprs})"
  
imports: from __future__ import annotations
  import dataclasses
  import functools
  import hashlib
  import os
  import subprocess
  import sys
  from typing import Any, Dict, Iterable, List, Mapping, Set, TypeVar, Union
  from typing_extensions import Final
  from streamlit import env_util
label_desc: Use image node_id 5 for calling a global function with example usage: repr_() and returns: classname, str, field_reprs, str