class_docstr: Wrapper for writing rotated or mirrored text
class_docstr_tok: ["Wrapper","for","writing","rotated","or","mirrored","text"]
code: def getbbox(self, text, *args, **kwargs):
      # TransposedFont doesn't support getmask2, move top-left point to (0, 0)
      # this has no effect on ImageFont and simulates anchor="lt" for FreeTypeFont
      left, top, right, bottom = self.font.getbbox(
          text, *args, **kwargs
      )
      width = right - left
      height = bottom - top
      if self.orientation in (
          Image.Transpose.ROTATE_90,
          Image.Transpose.ROTATE_270,
      ):
          return 0, 0, height, width
      return 0, 0, width, height
  
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 3 for calling the TransposedFont obj's underlying member method code with example usage: obj.getbbox(text) and returns: int,  int,  width,  height, int,  int,  height,  width