code: def test_object_detection_tiny_yolov3_custom_objects(input_image):
      detector = ObjectDetection()
      detector.setModelTypeAsTinyYOLOv3()
      detector.setModelPath(
          os.path.join(test_folder, "data-models", "tiny-yolov3.pt")
      )
      detector.loadModel()
  
      custom = detector.CustomObjects(person=True, cell_phone=True)
  
      custom_detections = detector.detectObjectsFromImage(
          input_image=input_image, custom_objects=custom
      )
  
      for custom_detection in custom_detections:
          assert custom_detection["name"] in ["person", "cell phone"]
  
      detections = detector.detectObjectsFromImage(
          input_image=input_image
      )
  
      assert len(detections) > len(custom_detections)
  
file_path: ImageAI/test/test_object_detection.py
imports: import os, sys
  from typing import List
  import shutil
  import cv2
  import uuid
  from PIL import Image
  import numpy
  import pytest
  from os.path import dirname
  from imageai.Detection import ObjectDetection
label_desc: Use image node_id 7 for calling a global function with example usage: test_object_detection_tiny_yolov3_custom_objects(input_image) without return types