def METHOD_NAME(vars_local):
    """Tests that files are written correctly."""
    url, url_seg = vars_local
    files = sorted(glob.glob("*.feather"))
    for f in sorted(files):
        os.remove(f)
    nbr = nbrhood.NeighborhoodFeatures(
        url=url, radius=1, offset=OFF, segment_url=url_seg
    )
    nbr.fit([2], 5, file_path="test", batch_size=10)
    files = sorted(glob.glob("*.feather"))
    for f in sorted(files):
        print(f)
        os.remove(f)
    assert files == ["test0_10_2_4.feather"]
    df_nbr = nbr.fit([2], 5, file_path="test", batch_size=10, start_seg=2, start_vert=0)
    files = sorted(glob.glob("*.feather"))
    for f in sorted(files):
        os.remove(f)
    assert files == ["test0_10_2_4.feather"]