class_docstr: Implements OCR with Tesseract.
class_docstr_tok: ["Implements","OCR","with","Tesseract","."]
code: def get_orientation(input_file, options):
      return tesseract.get_orientation(
          input_file,
          engine_mode=options.tesseract_oem,
          timeout=options.tesseract_non_ocr_timeout,
      )
  
imports: from __future__ import annotations
  import logging
  import os
  from PIL import Image
  from ocrmypdf import hookimpl
  from ocrmypdf._exec import tesseract
  from ocrmypdf._jobcontext import PageContext
  from ocrmypdf.cli import numeric, str_to_int
  from ocrmypdf.helpers import clamp
  from ocrmypdf.imageops import calculate_downsample, downsample_image
  from ocrmypdf.pluginspec import OcrEngine
  from ocrmypdf.subprocess import check_external_program
label_desc: Use image node_id 5 for calling the TesseractOcrEngine obj's underlying member method code with example usage: obj.get_orientation(input_file, options) and returns: tesseract