code: def __init__(
      self,
      child: Doc,
      *,
      foreground: Color | None = None,
      background: Color | None = None,
      intensity: Intensity | None = None,
  ):
      assert isinstance(child, Doc), child
      self.child = child
      self.foreground = foreground
      self.background = background
      self.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 1 to create a new _ColorDoc object from inherited base classes: Doc with example: obj = _ColorDoc(child)