class_docstr: Draw a text annotation at the specified position with custom
  fontsize, alignment and rotation.
class_docstr_tok: ["Draw","a","text","annotation","at","the","specified","position","with","custom","fontsize",",","alignment","and","rotation","."]
code: def __init__(
      self,
      x,
      y,
      text,
      fontsize=12,
      halign="center",
      valign="center",
      rotation=0,
      **params,
  ):
      info = (x, y, text, fontsize, halign, valign, rotation)
      super().__init__(
          info,
          x=x,
          y=y,
          text=text,
          fontsize=fontsize,
          rotation=rotation,
          halign=halign,
          valign=valign,
          **params,
      )
  
imports: from numbers import Number
  import numpy
  import param
  from ..core import Dimension, Element, Element2D
  from ..core.data import Dataset
  from ..core.util import datetime_types
label_desc: Use image node_id 1 to create a new Text object from inherited base classes: Annotation with example: obj = Text(x, y, text, fontsize, halign, valign, rotation)