code: def build_model() -> dict:
      """
      Build a ssd detector model
      Returns:
          model (Any)
      """
  
      home = functions.get_deepface_home()
  
      # model structure
      if (
          os.path.isfile(home + "/.deepface/weights/deploy.prototxt")
          != True
      ):
          logger.info("deploy.prototxt will be downloaded...")
  
          url = "https://github.com/opencv/opencv/raw/3.4.0/samples/dnn/face_detector/deploy.prototxt"
  
          output = home + "/.deepface/weights/deploy.prototxt"
  
          gdown.download(url, output, quiet=False)
  
      # pre-trained weights
      if (
          os.path.isfile(
              home
              + "/.deepface/weights/res10_300x300_ssd_iter_140000.caffemodel"
          )
          != True
      ):
          logger.info(
              "res10_300x300_ssd_iter_140000.caffemodel will be downloaded..."
          )
  
          url = "https://github.com/opencv/opencv_3rdparty/raw/dnn_samples_face_detector_20170830/res10_300x300_ssd_iter_140000.caffemodel"
  
          output = (
              home
              + "/.deepface/weights/res10_300x300_ssd_iter_140000.caffemodel"
          )
  
          gdown.download(url, output, quiet=False)
  
      try:
          face_detector = cv2.dnn.readNetFromCaffe(
              home + "/.deepface/weights/deploy.prototxt",
              home
              + "/.deepface/weights/res10_300x300_ssd_iter_140000.caffemodel",
          )
      except Exception as err:
          raise ValueError(
              "Exception while calling opencv.dnn module."
              + "This is an optional dependency."
              + "You can install it as pip install opencv-contrib-python."
          ) from err
  
      eye_detector = OpenCvWrapper.build_cascade("haarcascade_eye")
  
      detector = {}
      detector["face_detector"] = face_detector
      detector["eye_detector"] = eye_detector
  
      return detector
  
file_path: deepface/deepface/detectors/SsdWrapper.py
imports: import os
  import gdown
  import cv2
  import pandas
  import numpy
  from deepface.detectors import OpenCvWrapper
  from deepface.commons import functions
  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: detector