def METHOD_NAME(s, e, length, keep_length):
    span_start = np.random.randint(s, e - length)
    mask_idc.extend(span_start + i for i in range(length))
    new_parts = []
    if span_start - s - min_space >= keep_length:
        new_parts.append((s, span_start - min_space + 1))
    if e - span_start - length - min_space > keep_length:
        new_parts.append((span_start + length + min_space, e))
    return new_parts