code: def test_ocr_detection(resources):
      filename = resources / "graph_ocred.pdf"
      pdf = pdfinfo.PdfInfo(filename)
      assert not pdf[0].has_vector
      assert pdf[0].has_text
  
imports: from __future__ import annotations
  import pickle
  import warnings
  from io import BytesIO
  from math import isclose
  import img2pdf
  import pikepdf
  import pytest
  from PIL import Image
  from reportlab.lib.units import inch
  from reportlab.pdfgen.canvas import Canvas
  from ocrmypdf import pdfinfo
  from ocrmypdf.exceptions import InputFileError
  from ocrmypdf.helpers import IMG2PDF_KWARGS, Resolution
  from ocrmypdf.pdfinfo import Colorspace, Encoding
  from ocrmypdf.pdfinfo.layout import PDFPage
label_desc: Use image node_id 14 for calling a global function with example usage: test_ocr_detection(resources) without return types