def METHOD_NAME():
    """This regression test is creating hashes from sample videos and compare them with the provided hashes line by line.
    Two VPDQ features are considered the same if each line of the hashes are within DISTANCE_TOLERANCE.
    For hashes that have a quality lower than QUALITY_TOLERANCE, the test will skip them for comparing.
    """
    test_files = get_test_file_paths()
    for file in test_files:
        # Load the hash file truth
        hash_file = Path(f"{HASH_FOLDER}/{file.stem}.txt")
        assert hash_file.is_file()
        ret = test_util.read_file_to_hash(hash_file)
        assert ret is not None
        sample_hashes[file] = ret
        # Calculate the hash of file
        assert file.is_file()
        ret = vpdq.computeHash(input_video_filename=file, seconds_per_hash=0)
        assert ret is not None
        test_hashes[file] = ret
        print("Comparing hash for video:", file)
        hash1 = test_hashes[file]
        hash2 = sample_hashes[file]
        assert len(hash1) == len(hash2)
        for h1, h2 in zip(hash1, hash2):
            if h1.quality >= QUALITY_TOLERANCE and h2.quality >= QUALITY_TOLERANCE:
                assert h1.hamming_distance(h2) < DISTANCE_TOLERANCE
                assert h1.frame_number == h2.frame_number
        # Compare the downsampled hashes
        for downsampled_hash_file_pathanddim in get_downsampled_hash_files(hash_file):
            downsampled_hash_file = downsampled_hash_file_pathanddim.path
            downsampled_width = int(downsampled_hash_file_pathanddim.width)
            downsampled_height = int(downsampled_hash_file_pathanddim.height)
            # Load the downsampled hash file truth
            assert downsampled_hash_file.is_file()
            ret = test_util.read_file_to_hash(downsampled_hash_file)
            assert ret is not None
            sample_hashes[downsampled_hash_file] = ret
            # Calculated downsampled hash of test file
            assert file.is_file()
            ret = vpdq.computeHash(
                input_video_filename=file,
                seconds_per_hash=0,
                downsample_width=downsampled_width,
                downsample_height=downsampled_height,
            )
            assert ret is not None
            test_hashes[downsampled_hash_file] = ret
            print("Comparing hash for downsampled video:", downsampled_hash_file)
            hash1 = test_hashes[downsampled_hash_file]
            hash2 = sample_hashes[downsampled_hash_file]
            assert len(hash1) == len(hash2)
            for h1, h2 in zip(hash1, hash2):
                if h1.quality >= QUALITY_TOLERANCE and h2.quality >= QUALITY_TOLERANCE:
                    assert h1.hamming_distance(h2) < DISTANCE_TOLERANCE
                    assert h1.frame_number == h2.frame_number