code: def _download_file(url):
      """Download the file.
      url - The URL address of the frozen file
      fname - Filename of the frozen TF graph in the url.
      """
      dir_path = TMP_MODEL_DIR
      if not os.path.exists(dir_path):
          os.makedirs(dir_path)
  
      k = url.rfind("/")
      fname = url[k + 1 :]
      fpath = os.path.join(dir_path, fname)
  
      ftype = None
      if url.endswith(".tar.gz") or url.endswith(".tgz"):
          ftype = "tgz"
      elif url.endswith(".zip"):
          ftype = "zip"
  
      if not os.path.exists(fpath):
          urllib.urlretrieve(url, fpath)
      if ftype == "tgz":
          tar = tarfile.open(fpath)
          tar.extractall(dir_path)
          tar.close()
      elif ftype == "zip":
          zip_ref = zipfile.ZipFile(fpath, "r")
          zip_ref.extractall(dir_path)
          zip_ref.close()
  
imports: import unittest
  import urllib
  import os
  import tarfile
  import zipfile
  import numpy
  import PIL.Image
  import tensorflow
  from tensorflow.core.framework import graph_pb2
  import tfcoreml
label_desc: Use image node_id 1 for calling a global function with example usage: _download_file(url) without return types