code: def upgrade_available(pkg,
                        bin_env=None,
                        user=None,
                        cwd=None):
      '''
      .. versionadded:: 2015.5.0
  
      Check whether or not an upgrade is available for a given package
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' pip.upgrade_available <package name>
      '''
      return pkg in list_upgrades(bin_env=bin_env, user=user, cwd=cwdf upgrade_available(pkg,
                        bin_env=None,
                        user=None,
                        cwd=None):
      '''
      .. versionadded:: 2015.5.0
  
      Check whether or not an upgrade is available for a given package
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' pip.upgrade_available <package name>
      '''
      return pkg in list_upgrades(bin_env=bin_env, user=user, cwd=cwd)
docs: .. versionadded:: 2015.5.0
  
      Check whether or not an upgrade is available for a given package
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' pip.upgrade_available <package name>