code: def loadModel(
      url="https://github.com/serengil/deepface_models/releases/download/v1.0/facenet_weights.h5",
  ) -> Model:
      model = InceptionResNetV2()
  
      # -----------------------------------
  
      home = functions.get_deepface_home()
  
      if (
          os.path.isfile(home + "/.deepface/weights/facenet_weights.h5")
          != True
      ):
          logger.info("facenet_weights.h5 will be downloaded...")
  
          output = home + "/.deepface/weights/facenet_weights.h5"
          gdown.download(url, output, quiet=False)
  
      # -----------------------------------
  
      model.load_weights(home + "/.deepface/weights/facenet_weights.h5")
  
      # -----------------------------------
  
      return model
  
file_path: deepface/deepface/basemodels/Facenet.py
imports: import os
  import gdown
  import tensorflow
  from deepface.commons import functions
  from deepface.commons.logger import Logger
label_desc: Use image node_id 3 for calling a global function with example usage: loadModel(url) and returns: model