code: def pformat_short_array_text(
      shape: tuple[int, ...], dtype: str
  ) -> str:
      short_dtype = (
          dtype.replace("float", "f")
          .replace("uint", "u")
          .replace("int", "i")
          .replace("complex", "c")
      )
      short_shape = ",".join(map(str, shape))
      return f"{short_dtype}[{short_shape}]"
  
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 8 for calling a global function with example usage: pformat_short_array_text(shape, dtype) and returns: short_dtype, str, short_shape, str