from typing import Tuple


def indices(mask: int) -> Tuple[Tuple[int, int], ...]:
    """Attribute indices helper.

    Args:
        mask: the attribute mask for which to return the indices.

    Returns:
        Tuple of (``index``, ``index_mask``) tuples, where ``index`` is in the
        range 1 through 16 (inclusive).
    """
    indices_ = []
    for index in range(1, 17):
        index_shift = 16 - index  # 15, 14, ..., 0
        index_mask = 1 << index_shift
        if index_mask & mask:
            indices_ += [(index, index_mask)]
    return tuple(indices_)