code: def build_model() -> Any:
      """
      Build a yolo detector model
      Returns:
          model (Any)
      """
      import gdown
      import os
  
      # Import the Ultralytics YOLO model
      try:
          from ultralytics import YOLO
      except ModuleNotFoundError as e:
          raise ImportError(
              "Yolo is an optional detector, ensure the library is installed. \
                Please install using 'pip install ultralytics' "
          ) from e
  
      from deepface.commons.functions import get_deepface_home
  
      weight_path = f"{get_deepface_home()}{PATH}"
  
      # Download the model's weights if they don't exist
      if not os.path.isfile(weight_path):
          gdown.download(WEIGHT_URL, weight_path, quiet=False)
          logger.info(
              f"Downloaded YOLO model {os.path.basename(weight_path)}"
          )
  
      # Return face_detector
      return YOLO(weight_path)
  
imports: from typing import Any
  import numpy
  from deepface.detectors import FaceDetector
  from deepface.commons.logger import Logger
label_desc: Use image node_id 1 for calling a global function with example usage: build_model() and returns: YOLO