def object_in_list(obj, l):
    for o in l:
        if o is obj:
            return True
    return False
Get information about instance resource usage.
dataset/ETHPy150Open pympler/pympler/pympler/util/compat.py/object_in_list--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/xenapi/driver.py/XenAPIDriver.get_per_instance_usage