def getid(obj):
    try:
        return obj.id
    except AttributeError:
        return obj
Install a specific version of a package by retrieving from git history.
dataset/ETHPy150Open openstack/python-cerberusclient/cerberusclient/common/base.py/getid--crossover with--dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/package/brew.py/_install_pkg_version