def selection_adapter(indices):
    """
    Returns the adapter tht selects elements of an object based on indices parameter.

    :param indices: indices used to select elements
    :return: adapter which selects specified elements of a object
    """
    def select_internal(obj):
        return obj[..., indices]

    return select_internal