code: def __init__(self, text: str, annotation: str | None = None):
      assert isinstance(text, str), text
      assert annotation is None or isinstance(
          annotation, str
      ), annotation
      self.text = text
      self.annotation = annotation
  
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 _TextDoc object from inherited base classes: Doc with example: obj = _TextDoc(text, annotation)