def upgrade_available(pkg,
                      bin_env=None,
                      user=None,
                      cwd=None):
    return pkg in list_upgrades(bin_env=bin_env, user=user, cwd=cwd)
A context manager to create a temporary directory and clean up on exit.
dataset/ETHPy150Open saltstack/salt/salt/modules/pip.py/upgrade_available--crossover with--dataset/ETHPy150Open google/google-apputils/google/apputils/file_util.py/TemporaryDirectory