def METHOD_NAME(storage):
    data = EXAMPLE_DATA[(storage.block_size, storage.alignment)]
    with open(storage.path, "wb") as f:
        f.write(data.encode("utf-8"))
    # Read initial metadata.
    md = fileSD.FileSDMetadata(storage.path)
    initial_metadata = md.copy()
    # Simulate another host changing data on storage...
    other_md = fileSD.FileSDMetadata(storage.path)
    other_md[sd.DMDK_VERSION] = 6
    new_metadata = other_md.copy()
    # Check that reading return cached data.
    assert md.copy() == initial_metadata
    # Check that invalidating read data from storage.
    md.invalidate()
    assert md.copy() == new_metadata