code: def doc_repr(obj: _T, string: str) -> _T:
      if TYPE_CHECKING:
          return obj
      else:
          if getattr(typing, "GENERATING_DOCUMENTATION", False):
              return WithRepr(obj, string)
          else:
              return obj
  
file_path: equinox/equinox/_doc_utils.py
imports: import inspect
  import typing
  from typing import TYPE_CHECKING, TypeVar
label_desc: Use image node_id 1 for calling a global function with example usage: doc_repr(obj, string) and returns: obj, WithRepr, obj