def parse_bool(raw):
    """Takes a string representation of a truthy string value and converts it to bool.

    Valid boolean representations include:
        - y/yes/Yes/YES
        - true/True/TRUE
        - 1

    Args:
        raw (str): Truthy value to convert.

    Returns:
        bool: Boolean representation of value.
    """
    if isinstance(raw, str):
        raw = raw.lower()

    return raw in ["y", "yes", "true", "1", 1]