class_docstr: Wrapper for writing rotated or mirrored text
class_docstr_tok: ["Wrapper","for","writing","rotated","or","mirrored","text"]
code: def getsize(self, text, *args, **kwargs):
      w, h = self.font.getsize(text)
      if self.orientation in (Image.ROTATE_90, Image.ROTATE_270):
          return h, w
      return w, h
  
imports: import base64
  import os
  import sys
  from io import BytesIO
  from .None import Image
  from ._util import isDirectory, isPath
label_desc: Use image node_id 2 for calling the TransposedFont obj's underlying member method code with example usage: obj.getsize(text) and returns: w,  h, h,  w