def METHOD_NAME(times, addrs, start_time, T):
    try:
        idx_beg = find_first(times, start_time)
        idx_end = find_first(times[idx_beg:], start_time + T) + idx_beg
        return np.column_stack(
            [times[idx_beg:idx_end], addrs[idx_beg:idx_end]]
        )
    except IndexError:
        raise IndexError("Empty batch found")