class_docstr: Wrapper for writing rotated or mirrored text
class_docstr_tok: ["Wrapper","for","writing","rotated","or","mirrored","text"]
code: def getlength(self, text, *args, **kwargs):
      if self.orientation in (
          Image.Transpose.ROTATE_90,
          Image.Transpose.ROTATE_270,
      ):
          msg = "text length is undefined for text rotated by 90 or 270 degrees"
          raise ValueError(msg)
      _string_length_check(text)
      return self.font.getlength(text, *args, **kwargs)
  
imports: import base64
  import os
  import sys
  import warnings
  from enum import IntEnum
  from io import BytesIO
  from .None import Image
  from ._util import is_directory, is_path
label_desc: Use image node_id 4 for calling the TransposedFont obj's underlying member method code with example usage: obj.getlength(text) and returns: self