def index_siblings(pid, include_pid=False, children=None,
                   neighbors_eager=False, eager=False, with_deposits=True):
    assert not (neighbors_eager and eager), \
    if children is None:
        parent_pid = PIDNodeVersioning(pid=pid).parents.first()
        children = PIDNodeVersioning(pid=parent_pid).children.all()
    objid = str(pid.object_uuid)
    children = [str(p.object_uuid) for p in children]
    idx = children.index(objid) if objid in children else len(children)
    if include_pid:
        left = children[:idx + 1]
    else:
        left = children[:idx]
    right = children[idx + 1:]
    if eager:
        eager_uuids = left + right
        bulk_uuids = []
    elif neighbors_eager:
        eager_uuids = left[-1:] + right[:1]
        bulk_uuids = left[:-1] + right[1:]
    else:
        eager_uuids = []
        bulk_uuids = left + right
    def get_dep_uuids(rec_uuids):
        return [str(PersistentIdentifier.get(
                    'depid',
                    Record.get_record(id_)['_deposit']['id']).object_uuid)
                for id_ in rec_uuids]
    if with_deposits:
        eager_uuids += get_dep_uuids(eager_uuids)
        bulk_uuids += get_dep_uuids(bulk_uuids)
    for id_ in eager_uuids:
        RecordIndexer().index_by_id(id_)
    if bulk_uuids:
        RecordIndexer().bulk_index(bulk_uuids)