def METHOD_NAME(args, work_dir, test_url):
    test_files = []
    if '.tar' in test_url:
        #A tar file of benchmark files
        benchmark_tar = os.path.join(work_dir, os.path.basename(test_url))
        get_url(test_url, benchmark_tar)
        with tarfile.TarFile.open(benchmark_tar, mode="r|*") as tar_file:
            tar_file.extractall(path=work_dir)
        test_files += glob.glob("{}/*.tatum".format(work_dir))
        test_files += glob.glob("{}/*/*.tatum".format(work_dir))
    else:
        #A directory of benchmark files
        test_files += glob.glob("{}/*.tatum".format(test_url))
        test_files += glob.glob("{}/*/*.tatum".format(test_url))
    return test_files