code: def is_face_down(image_path):
      tesseract_output = subprocess.Popen(
          ["tesseract", image_path, "-", "--psm", "0"],
          stdout=subprocess.PIPE,
          stderr=subprocess.DEVNULL,
          bufsize=1,
          universal_newlines=True,
      ).stdout.read()
      try:
          tesseract_rotation = re.search(
              "(?<=Rotate: )\d+", tesseract_output
          ).group(0)
          if tesseract_rotation != "0":
              return True
      except Exception as e:
          return False
  
      return False
  
file_path: doc-parsr/server/assets/ImageCorrection.py
imports: from __future__ import print_function
  import numpy
  import cv2
  import json
  import math
  from pathlib import Path
  import re
  import os
  import sys
  import subprocess
label_desc: Use image node_id 6 for calling a global function with example usage: is_face_down(image_path) and returns: False, True, False