code: def __init__(self):
      ## this is not a must dependency. do not import it in the global level.
      try:
          import dlib
      except ModuleNotFoundError as e:
          raise ImportError(
              "Dlib is an optional dependency, ensure the library is installed."
              "Please install using 'pip install dlib' "
          ) from e
  
      self.layers = [DlibMetaData()]
  
      # ---------------------
  
      home = functions.get_deepface_home()
      weight_file = (
          home
          + "/.deepface/weights/dlib_face_recognition_resnet_model_v1.dat"
      )
  
      # ---------------------
  
      # download pre-trained model if it does not exist
      if os.path.isfile(weight_file) != True:
          logger.info(
              "dlib_face_recognition_resnet_model_v1.dat is going to be downloaded"
          )
  
          file_name = "dlib_face_recognition_resnet_model_v1.dat.bz2"
          url = f"http://dlib.net/files/{file_name}"
          output = f"{home}/.deepface/weights/{file_name}"
          gdown.download(url, output, quiet=False)
  
          zipfile = bz2.BZ2File(output)
          data = zipfile.read()
          newfilepath = output[:-4]  # discard .bz2 extension
          with open(newfilepath, "wb") as f:
              f.write(data)
  
      # ---------------------
  
      model = dlib.face_recognition_model_v1(weight_file)
      self.__model = model
  
file_path: deepface/deepface/basemodels/DlibResNet.py
imports: import os
  import bz2
  import gdown
  import numpy
  from deepface.commons import functions
  from deepface.commons.logger import Logger
label_desc: Use image node_id 1 to create a new DlibResNet object  with example: obj = DlibResNet()