def METHOD_NAME(dataset, netcdf_files):
    ndata, xx, yy, x_interp, y_interp = dataset
    basetime, ncfile_pattern, files = netcdf_files
    init_date = basetime
    nts = NetCDFTimeSearch(ncfile_pattern.format('*'), init_date, NetCDFTimeParser)
    assert nts.simulation_time_to_datetime(xx[0]) == init_date
    assert nts.simulation_time_to_datetime(xx[10]) == init_date + datetime.timedelta(seconds=xx[10])
    x_max = xx.max()
    for t in numpy.linspace(1., x_max-1., 20):
        # search for time index and assert time stamp from nc file
        fn, itime, ftime = nts.find(t, previous=True)
        time_var = netCDF4.Dataset(fn)['time']
        correct = xx[numpy.searchsorted(xx, t) - 1]
        assert numpy.allclose(time_var[itime], ftime)
        assert numpy.allclose(time_var[itime], correct)
        assert time_var[itime] < t
        fn, itime, ftime = nts.find(t, previous=False)
        time_var = netCDF4.Dataset(fn)['time']
        correct = xx[numpy.searchsorted(xx, t)]
        assert numpy.allclose(time_var[itime], ftime)
        assert numpy.allclose(time_var[itime], correct)
        assert time_var[itime] > t