from typing import Any


def squeeze_tuple(item: Any) -> Any:
    """Reduces a tuple to a single item if only it consists of
    a single item.

    Args:
        item: any sequence or a single item.

    Returns:
        a single item if possible, or an input sequence if not.

    >>> from redex import util
    >>> util.squeeze_tuple((1,))
    1
    >>> util.squeeze_tuple((1,2))
    (1, 2)
    """
    return item[0] if isinstance(item, tuple) and len(item) == 1 else item