from typing import Iterable
from typing import Any


def _is_seq_has_one_uniq_value(iterable: Iterable[Any]) -> bool:
    """Check. Has 'iterable' only a one unique value?

    It is equivalent following: 'len({item for item in iterable}) == 1'.

    --------------------
    Args:
        'iterable': An input sequence.

    --------------------
    Returns:
        True, if 'iterable' contains only a one unique value, otherwise False.

    --------------------
    Raises:
        ValueError: If 'iterable' is empty.

    """

    iterator = iter(iterable)

    try:
        first_value = next(iterator)
        is_has_uniq_value = True
    except StopIteration:
        raise ValueError("'iterable' is empty.")

    try:
        while True:
            value = next(iterator)
            if value != first_value:
                is_has_uniq_value = False
                break
    except StopIteration:
        pass

    return is_has_uniq_value