def is_true(arg) -> bool:
    """Return if the given argument is a True value"""
    if isinstance(arg, str):
        return arg.lower() in ('yes', 'true', 'on', '1')
    if isinstance(arg, bool):
        return arg 
    if isinstance(arg, int):
        return arg != 0
    raise Exception(f'Invalid boolean arg: {arg}')