code: def download_testdata(url, relpath, module=None, overwrite=False):
      """Downloads the test data from the internet.
  
      Parameters
      ----------
      url : str
          Download url.
  
      relpath : str
          Relative file path.
  
      module : Union[str, list, tuple], optional
          Subdirectory paths under test data folder.
  
      overwrite : bool, defaults to False
          If True, will download a fresh copy of the file regardless of
          the cache.  If False, will only download the file if a cached
          version is missing.
  
      Returns
      -------
      abspath : str
          Absolute file path of downloaded file
  
      """
      global TEST_DATA_ROOT_PATH
      if module is None:
          module_path = ""
      elif isinstance(module, str):
          module_path = module
      elif isinstance(module, (list, tuple)):
          module_path = Path(*module)
      else:
          raise ValueError("Unsupported module: " + module)
      abspath = Path(TEST_DATA_ROOT_PATH, module_path, relpath)
      download(url, abspath, overwrite=overwrite, size_compare=False)
      return str(abspath)
  
file_path: tvm/python/tvm/contrib/download.py
imports: import logging
  import os
  from pathlib import Path
  import shutil
  import tempfile
  import time
label_desc: Use image node_id 2 for calling a global function with example usage: download_testdata(url, relpath, module, overwrite) and returns: str