code: def test_limited_pages(multipage, outpdf):
      ocrmypdf.ocr(
          multipage,
          outpdf,
          pages="5-6",
          optimize=0,
          output_type="pdf",
          plugins=["tests/plugins/tesseract_cache.py"],
      )
      pi = PdfInfo(outpdf)
      assert not pi.pages[0].has_text
      assert pi.pages[4].has_text
      assert pi.pages[5].has_text
  
file_path: OCRmyPDF/tests/test_page_numbers.py
imports: from __future__ import annotations
  import pytest
  import ocrmypdf
  from ocrmypdf._validation import _pages_from_ranges
  from ocrmypdf.exceptions import BadArgsError
  from ocrmypdf.pdfinfo import PdfInfo
label_desc: Use image node_id 3 for calling a global function with example usage: test_limited_pages(multipage, outpdf) without return types