code: def text(
      self,
      xy,
      text,
      fill=None,
      font=None,
      anchor=None,
      spacing=4,
      align="left",
      direction=None,
      features=None,
      language=None,
      stroke_width=0,
      stroke_fill=None,
      *args,
      **kwargs,
  ):
      if self._multiline_check(text):
          return self.multiline_text(
              xy,
              text,
              fill,
              font,
              anchor,
              spacing,
              align,
              direction,
              features,
              language,
              stroke_width,
              stroke_fill,
          )
  
      if font is None:
          font = self.getfont()
  
      def getink(fill):
          ink, fill = self._getink(fill)
          if ink is None:
              return fill
          return ink
  
      def draw_text(ink, stroke_width=0, stroke_offset=None):
          coord = xy
          try:
              mask, offset = font.getmask2(
                  text,
                  self.fontmode,
                  direction=direction,
                  features=features,
                  language=language,
                  stroke_width=stroke_width,
                  *args,
                  **kwargs,
              )
              coord = coord[0] + offset[0], coord[1] + offset[1]
          except AttributeError:
              try:
                  mask = font.getmask(
                      text,
                      self.fontmode,
                      direction,
                      features,
                      language,
                      stroke_width,
                      *args,
                      **kwargs,
                  )
              except TypeError:
                  mask = font.getmask(text)
          if stroke_offset:
              coord = (
                  coord[0] + stroke_offset[0],
                  coord[1] + stroke_offset[1],
              )
          self.draw.draw_bitmap(coord, mask, ink)
  
      ink = getink(fill)
      if ink is not None:
          stroke_ink = None
          if stroke_width:
              stroke_ink = (
                  getink(stroke_fill)
                  if stroke_fill is not None
                  else ink
              )
  
          if stroke_ink is not None:
              # Draw stroked text
              draw_text(stroke_ink, stroke_width)
  
              # Draw normal text
              draw_text(ink, 0, (stroke_width, stroke_width))
          else:
              # Only draw normal text
              draw_text(ink)
  
imports: import math
  import numbers
  from .None import Image, ImageColor
  from ._util import isStringType
label_desc: Use image node_id 16 for calling the ImageDraw obj's underlying member method code with example usage: obj.text(xy, text, fill, font, anchor, spacing, align, direction, features, language, stroke_width, stroke_fill) and returns: self, ink, fill