code: def get_tesseract_executable():
      if not is_tesseract_available():
          return None
  
      tesseract_executable = "tesseract"
  
      if is_windows():
          source_path = pathlib.Path(__file__).parent.parent.absolute()
          current_path = pathlib.Path(".").absolute()
  
          for path in (source_path, current_path):
              path = path.joinpath("tools/tesseract/tesseract.exe")
  
              if path.exists():
                  tesseract_executable = str(path.as_posix())
                  break
  
      return tesseract_executable
  
file_path: SerpentAI/serpent/ocr.py
imports: import pathlib
  import shutil
  import skimage.color
  import skimage.segmentation
  import skimage.filters
  import skimage.morphology
  import skimage.util
  import skimage.transform
  import skimage.measure
  import skimage.io
  import pytesseract
  from PIL import Image
  from serpent.utilities import is_windows
label_desc: Use image node_id 2 for calling a global function with example usage: get_tesseract_executable() and returns: tesseract_executable, None