code: def get_model_file(
      name, root=os.path.join(base.data_dir(), "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_HOME/models
          Location for keeping the model parameters.
  
      Returns
      -------
      file_path
          Path to the requested pretrained model file.
      """
      file_name = "{name}-{short_hash}".format(
          name=name, short_hash=short_hash(name)
      )
      root = os.path.expanduser(root)
      file_path = os.path.join(root, file_name + ".params")
      sha1_hash = _model_sha1[name]
      if os.path.exists(file_path):
          if check_sha1(file_path, sha1_hash):
              return file_path
          else:
              logging.warning(
                  "Mismatch in the content of model file detected. Downloading again."
              )
      else:
          logging.info(
              "Model file not found. Downloading to %s.", file_path
          )
  
      os.makedirs(root, exist_ok=True)
  
      repo_url = os.environ.get("MXNET_GLUON_REPO", apache_repo_url)
      if repo_url[-1] != "/":
          repo_url = repo_url + "/"
  
      random_uuid = str(uuid.uuid4())
      temp_zip_file_path = os.path.join(
          root, file_name + ".zip" + random_uuid
      )
      download(
          _url_format.format(repo_url=repo_url, file_name=file_name),
          path=temp_zip_file_path,
          overwrite=True,
      )
      with zipfile.ZipFile(temp_zip_file_path) as zf:
          with TemporaryDirectory(dir=root) as temp_dir:
              zf.extractall(temp_dir)
              temp_file_path = os.path.join(
                  temp_dir, file_name + ".params"
              )
              replace_file(temp_file_path, file_path)
      os.remove(temp_zip_file_path)
  
      if check_sha1(file_path, sha1_hash):
          return file_path
      else:
          raise ValueError(
              "Downloaded file has different hash. Please try again."
          )
  
file_path: mxnet/python/mxnet/gluon/model_zoo/model_store.py
imports: import os
  import zipfile
  import logging
  import uuid
  from ..utils import download, check_sha1, replace_file, TemporaryDirectory
  from ...None import base
label_desc: Use image node_id 2 for calling a global function with example usage: get_model_file(name, root) and returns: file_path, file_path