def METHOD_NAME(ds_segments):
    """Extend boundaries of the first and last segments
    to include all mzs outside of the spectra sample mz range."""
    mz_segments = ds_segments.copy()
    mz_segments[0, 0] = 0
    mz_segments[-1, 1] = MAX_MZ_VALUE
    return mz_segments