def METHOD_NAME(
    self,
    unit_id,
    start_frame: Union[int, None] = None,
    end_frame: Union[int, None] = None,
) -> np.ndarray:
    if unit_id in self._new_unit_ids:
        if start_frame is None:
            init = 0
        else:
            init = np.searchsorted(self._spike_trains[unit_id], start_frame, side="left")
        if end_frame is None:
            endf = len(self._spike_trains[unit_id])
        else:
            endf = np.searchsorted(self._spike_trains[unit_id], end_frame, side="right")
        times = self._spike_trains[unit_id][init:endf]
    else:
        times = self._parent_segment.METHOD_NAME(unit_id, start_frame, end_frame)
    return times