def METHOD_NAME(index):
    """ When 'pos' is True, method creates new batch by specified positions. """
    index, values = index
    right = values[:5]
    left = index.create_batch(range(5), pos=True).index
    assert (left == right).all()