def upgrade_available(pkg):
    '''
    Check whether or not an upgrade is available for a given package

    CLI Example:

    .. code-block:: bash

        salt '*' pkg.upgrade_available <package name>
    '''
    return list_upgrades() in pkg
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_brew.py/upgrade_available/swapped operands of `in`