code: def __call__(
      self,
      img: Union[str, np.ndarray],
      conf_threshold: float = 0.25,
      iou_threshold: float = 0.45,
      image_size: int = 720,
      classes: Optional[List[int]] = None,
  ) -> torch.tensor:
      self.model.conf = conf_threshold
      self.model.iou = iou_threshold
      if classes is not None:
          self.model.classes = classes
      detections = self.model(img, size=image_size)
      return detections
  
file_path: norfair/demos/colab/yolo.py
imports: import os
  from typing import List, Optional, Union
  import numpy
  import torch
  from norfair import Detection
label_desc: Use image node_id 2 for calling the YOLO obj's underlying member method code with example usage: obj.__call__(img, conf_threshold, iou_threshold, image_size, classes) and returns: detections