code: def get_model_file(
      name, root=os.path.join("~", ".insightface", "models")
  ):
      r"""Return location for the pretrained on local file system.
  
      This function will download from online model zoo when model cannot be found or has mismatch.
      The root directory will be created if it doesn't exist.
  
      Parameters
      ----------
      name : str
          Name of the model.
      root : str, default '~/.mxnet/models'
          Location for keeping the model parameters.
  
      Returns
      -------
      file_path
          Path to the requested pretrained model file.
      """
  
      file_name = name
      root = os.path.expanduser(root)
      dir_path = os.path.join(root, name)
      file_path = find_params_file(dir_path)
      # file_path = os.path.join(root, file_name + '.params')
      sha1_hash = _model_sha1[name]
      if file_path is not None:
          if check_sha1(file_path, sha1_hash):
              return file_path
          else:
              print(
                  "Mismatch in the content of model file detected. Downloading again."
              )
      else:
          print("Model file is not found. Downloading.")
  
      if not os.path.exists(root):
          os.makedirs(root)
      if not os.path.exists(dir_path):
          os.makedirs(dir_path)
  
      zip_file_path = os.path.join(root, file_name + ".zip")
      repo_url = base_repo_url
      if repo_url[-1] != "/":
          repo_url = repo_url + "/"
      download(
          _url_format.format(repo_url=repo_url, file_name=file_name),
          path=zip_file_path,
          overwrite=True,
      )
      with zipfile.ZipFile(zip_file_path) as zf:
          zf.extractall(dir_path)
      os.remove(zip_file_path)
      file_path = find_params_file(dir_path)
  
      if check_sha1(file_path, sha1_hash):
          return file_path
      else:
          raise ValueError(
              "Downloaded file has different hash. Please try again."
          )
  
file_path: insightface/python-package/insightface/model_zoo/model_store.py
imports: from __future__ import print_function
  import os
  import zipfile
  import glob
  from ..utils import download, check_sha1
label_desc: Use image node_id 3 for calling a global function with example usage: get_model_file(name, root) and returns: file_path, file_path