def METHOD_NAME(intervals_time, central_measure="mean"):
    """Get sampling rate from timestamps.
    Useful for determining sampling rate used to interpolate intervals.
    Parameters
    ----------
    intervals_time : list or array, optional
        List or numpy array of timestamps corresponding to intervals, in seconds.
    central_measure : str, optional
        The measure of central tendancy used. Either ``"mean"`` (default), ``"median"``, or ``"mode"``.
    Returns
    ----------
    bool
        Whether the timestamps are uniformly spaced
    """
    if central_measure == "mean":
        sampling_rate = float(1 / np.nanmean(np.diff(intervals_time)))
    elif central_measure == "median":
        sampling_rate = float(1 / np.nanmedian(np.diff(intervals_time)))
    else:
        sampling_rate = float(1 / scipy.stats.mode(np.diff(intervals_time)))
    return sampling_rate