code: def test_face_detector(mock_image_folder):
      detector = FaceDetector(n_faces=1)
      for img in os.listdir(mock_image_folder):
          image = DocumentFile.from_images(
              os.path.join(mock_image_folder, img)
          )[0]
          faces = detector(image)
          assert len(faces) <= 1
  
imports: import os
  from doctr.io import DocumentFile
  from doctr.models.artefacts import BarCodeDetector, FaceDetector
label_desc: Use image node_id 2 for calling a global function with example usage: test_face_detector(mock_image_folder) without return types