def METHOD_NAME(tmpdir):
    """
    Tests loading from a cache file after it is deleted.
    According to macOS `dev docs`__,
        Note that the system may delete the Caches/ directory to free up disk
        space, so your app must be able to re-create or download these files as
        needed.
    It is possible that other supported platforms treat cache files the same
    way.
    __ https://developer.apple.com/library/content/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html
    """
    grammar = load_grammar()
    module = 'fake parser'
    # Create the file
    path = tmpdir.dirname + '/some_path'
    with open(path, 'w'):
        pass
    io = file_io.FileIO(path)
    try_to_save_module(grammar._hashed, io, module, lines=[])
    assert load_module(grammar._hashed, io) == module
    os.unlink(_get_hashed_path(grammar._hashed, path))
    parser_cache.clear()
    cached2 = load_module(grammar._hashed, io)
    assert cached2 is None