def METHOD_NAME():
    da = make_array().rename_dims({'xx': 'time'})
    x = sc.arange(
        dim='time', start=0, stop=da.sizes['time'], step=1, unit='s', dtype='datetime64'
    )
    da.coords['time'] = x
    out = interp1d(da, 'time')(da.coords['time'])
    assert np.array_equal(
        out.values,
        theirs.interp1d(
            x=da.coords['time'].values.astype('int64'), y=da.values, axis=0
        )(x.values),
    )