docstr: Get the size of a given string, in pixels.
docstr_tok: ["Get","the","size","of","a","given","string",",","in","pixels","."]
code: def textsize(
      self,
      text,
      font=None,
      spacing=4,
      direction=None,
      features=None,
      language=None,
      stroke_width=0,
  ):
      """Get the size of a given string, in pixels."""
      if self._multiline_check(text):
          return self.multiline_textsize(
              text,
              font,
              spacing,
              direction,
              features,
              language,
              stroke_width,
          )
  
      if font is None:
          font = self.getfont()
      return font.getsize(
          text, direction, features, language, stroke_width
      )
  
imports: import math
  import numbers
  from .None import Image, ImageColor, ImageFont
label_desc: Use image node_id 20 for calling the ImageDraw obj's underlying member method code with example usage: obj.textsize(text, font, spacing, direction, features, language, stroke_width) and returns: font, self