def METHOD_NAME(output_dir, mod_md_map, arch):
    support_packages = []
    driver_version_re = re.compile(r'^\d+\.\d+\.\d+$')
    for mod_ver in os.listdir(output_dir):
        if mod_ver not in mod_md_map:
            # Skipping unreleased version
            continue
        mod_out_dir = os.path.join(output_dir, mod_ver)
        if not os.path.isdir(mod_out_dir):
            continue
        rox_version_ranges = sorted(mod_md_map[mod_ver], key=lambda r: r.max, reverse=True)
        if driver_version_re.match(mod_ver):
            driver_version = mod_ver
        else:
            # Legacy version (truncated SHA value)
            driver_version = mod_ver[:6]
        metadata_path = os.path.join(mod_out_dir, 'metadata.json')
        if not os.path.isfile(metadata_path):
            # Skip versions with no metadata file
            continue
        support_pkg_metadata = {}
        with open(metadata_path, 'r') as f:
            support_pkg_metadata = json.load(f)
        support_pkg_file = support_pkg_metadata['file_name']
        last_mod_time = support_pkg_metadata['last_modified']
        # This double checks the file exists, which means the file is also
        # uploaded in GCP, we error out otherwise
        os.stat(os.path.join(mod_out_dir, support_pkg_file))
        support_pkg_file_latest = f'support-pkg-{driver_version}-latest.zip'
        try:
            os.stat(os.path.join(mod_out_dir, support_pkg_file_latest))
        except (FileNotFoundError, PermissionError):
            support_pkg_file_latest = None
        support_pkg_chk = f'{support_pkg_file}.sha256'
        if not os.path.isfile(os.path.join(mod_out_dir, support_pkg_chk)):
            # No checksum available for package
            continue
        support_pkg_chk_latest = f'{support_pkg_file_latest}.sha256'
        if not os.path.isfile(os.path.join(mod_out_dir, support_pkg_chk_latest)):
            # No checksum available for package
            support_pkg_chk_latest = None
        support_packages.append(
            SupportPackage(mod_ver,
                           arch,
                           rox_version_ranges,
                           support_pkg_file,
                           support_pkg_file_latest,
                           last_mod_time,
                           support_pkg_chk,
                           support_pkg_chk_latest)
        )
    support_packages.sort(key=lambda p: p.rox_version_ranges[0].max, reverse=True)
    return support_packages