def METHOD_NAME(self, segmentlist, tmp_path, ext):
    tmp = tmp_path / "segments{}".format(ext)
    # check basic write/read with auto-path discovery
    segmentlist.write(tmp, 'test-segmentlist')
    sl2 = self.TEST_CLASS.read(tmp)
    assert_segmentlist_equal(sl2, segmentlist)
    assert isinstance(sl2[0][0], LIGOTimeGPS)
    sl2 = self.TEST_CLASS.read(tmp, path='test-segmentlist')
    assert_segmentlist_equal(sl2, segmentlist)
    # check we can read directly from the h5 object
    with h5py.File(tmp, "r") as h5f:
        sl2 = self.TEST_CLASS.read(h5f["test-segmentlist"])
        assert_segmentlist_equal(sl2, segmentlist)
    # check overwrite kwarg
    with pytest.raises(IOError):
        segmentlist.write(tmp, 'test-segmentlist')
    segmentlist.write(tmp, 'test-segmentlist', overwrite=True)
    # check gpstype kwarg
    sl2 = self.TEST_CLASS.read(tmp, gpstype=float)
    assert_segmentlist_equal(sl2, segmentlist)
    assert isinstance(sl2[0][0], float)