code: def _pformat_tuple(obj: tuple, **kwargs) -> pp.Doc:
      if len(obj) == 1:
          objs = [pp.concat([tree_pp(obj[0], **kwargs), pp.text(",")])]
      else:
          objs = [tree_pp(x, **kwargs) for x in obj]
      return bracketed(
          name=None,
          indent=kwargs["indent"],
          objs=objs,
          lbracket="(",
          rbracket=")",
      )
  
imports: import dataclasses
  import functools
  import sys
  import types
  from collections.abc import Callable, Sequence
  from typing import Any, Optional, Union
  import jax
  import jax._src.pretty_printer
  import jax.tree_util
  import numpy
  from jaxtyping import PyTree
  from ._doc_utils import WithRepr
label_desc: Use image node_id 4 for calling a global function with example usage: _pformat_tuple(obj) and returns: bracketed