code: def download_file(url_base, file_name):
      if not os.path.exists(file_name) or not os.path.isfile(file_name):
          import urllib.request as urllib2
  
          url = "{}/{}".format(url_base, file_name)
          try:
              print("download from {}".format(url))
              if sys.version_info >= (3,):
                  urllib2.urlretrieve(url, file_name)
              else:
                  f = urllib2.urlopen(url)
                  data = f.read()
                  with open(file_name, "wb") as code:
                      code.write(data)
          except Exception as err:
              if os.path.exists(file_name):
                  os.remove(file_name)
              raise Exception(
                  "download {} failed due to {}!".format(
                      file_name, repr(err)
                  )
              )
  
file_path: tvm/tests/python/nightly/quantization/test_quantization_accuracy_for_vit.py
imports: import os
  import sys
  import logging
  import pytest
  import onnx
  import tvm
  from tvm import relay
  from tvm.relay import quantize
  import tvm.testing
  from test_quantization_accuracy import Config, get_val_data, eval_acc
label_desc: Use image node_id 2 for calling a global function with example usage: download_file(url_base, file_name) without return types