code: def color(
      doc: Doc,
      *,
      foreground: Color | None = None,
      background: Color | None = None,
      intensity: Intensity | None = None,
  ):
      """ANSI colors.
  
      Overrides the foreground/background/intensity of the text for the child doc.
      Requires use_colors=True to be set when printing and the `colorama` package
      to be installed; otherwise does nothing.
      """
      return _ColorDoc(
          doc,
          foreground=foreground,
          background=background,
          intensity=intensity,
      )
  
imports: from __future__ import annotations
  import abc
  from collections.abc import Sequence
  import enum
  from functools import partial
  import sys
  from typing import NamedTuple
  from jax._src import config
label_desc: Use image node_id 13 for calling a global function with example usage: color(doc) and returns: _ColorDoc