code: def ocr_entire_page(
      page, lang: str, spellchecker: Optional[SpellChecker] = None
  ) -> List[Block]:
      if settings.OCR_ENGINE == "tesseract":
          return ocr_entire_page_tess(page, lang, spellchecker)
      elif settings.OCR_ENGINE == "ocrmypdf":
          return ocr_entire_page_ocrmp(page, lang, spellchecker)
      else:
          raise ValueError(f"Unknown OCR engine {settings.OCR_ENGINE}")
  
file_path: pdf-to-markdown/marker/ocr/page.py
imports: import io
  from typing import List, Optional
  import fitz
  import ocrmypdf
  from spellchecker import SpellChecker
  from marker.ocr.utils import detect_bad_ocr
  from marker.schema import Block
  from marker.settings import settings
label_desc: Use image node_id 1 for calling a global function with example usage: ocr_entire_page(page, lang, spellchecker) and returns: ocr_entire_page_tess, ocr_entire_page_ocrmp