def check_not_mnist_files(path):
    """Filters some bad files in NotMNIST dataset."""
    bad_paths = [
        "RGVtb2NyYXRpY2FCb2xkT2xkc3R5bGUgQm9sZC50dGY=.png",
        "Q3Jvc3NvdmVyIEJvbGRPYmxpcXVlLnR0Zg==.png",
    ]
    for bad_path in bad_paths:
        if bad_path in path:
            return False
    return True