def METHOD_NAME():
    """Test how broken directories are handled during hashing"""
    # dirpath doesn't exist
    nn = dir_count_file(name="listdir", dirpath="/broken_dir_path/")
    # raises error inside task
    # unless variable is defined as a File pydra will treat it as a string
    with pytest.raises(FileNotFoundError):
        with Submitter(plugin="cf") as sub:
            sub(nn)
    # raises error before task is run
    with pytest.raises(FileNotFoundError):
        dir_count_file_annot(name="listdir", dirpath="/broken_dir_path/")