code: def test_zoo_models(det_arch, reco_arch):
      # Model
      predictor = models.ocr_predictor(
          det_arch, reco_arch, pretrained=True
      )
      _test_predictor(predictor)
  
      # passing model instance directly
      det_model = detection.__dict__[det_arch](pretrained=True)
      reco_model = recognition.__dict__[reco_arch](pretrained=True)
      predictor = models.ocr_predictor(det_model, reco_model)
      _test_predictor(predictor)
  
      # passing recognition model as detection model
      with pytest.raises(ValueError):
          models.ocr_predictor(det_arch=reco_model, pretrained=True)
  
      # passing detection model as recognition model
      with pytest.raises(ValueError):
          models.ocr_predictor(reco_arch=det_model, pretrained=True)
  
      # KIE predictor
      predictor = models.kie_predictor(
          det_arch, reco_arch, pretrained=True
      )
      _test_kiepredictor(predictor)
  
      # passing model instance directly
      det_model = detection.__dict__[det_arch](pretrained=True)
      reco_model = recognition.__dict__[reco_arch](pretrained=True)
      predictor = models.kie_predictor(det_model, reco_model)
      _test_kiepredictor(predictor)
  
      # passing recognition model as detection model
      with pytest.raises(ValueError):
          models.kie_predictor(det_arch=reco_model, pretrained=True)
  
      # passing detection model as recognition model
      with pytest.raises(ValueError):
          models.kie_predictor(reco_arch=det_model, pretrained=True)
  
imports: import numpy
  import pytest
  from torch import nn
  from doctr import models
  from doctr.file_utils import CLASS_NAME
  from doctr.io import Document, DocumentFile
  from doctr.io.elements import KIEDocument
  from doctr.models import detection, recognition
  from doctr.models.detection.predictor import DetectionPredictor
  from doctr.models.detection.zoo import detection_predictor
  from doctr.models.kie_predictor import KIEPredictor
  from doctr.models.predictor import OCRPredictor
  from doctr.models.preprocessor import PreProcessor
  from doctr.models.recognition.predictor import RecognitionPredictor
  from doctr.models.recognition.zoo import recognition_predictor
label_desc: Use image node_id 7 for calling a global function with example usage: test_zoo_models(det_arch, reco_arch) without return types