@vm_ref_cache_from_instance
def get_vm_ref(session, instance):
    uuid = instance.uuid
    vm_ref = (search_vm_ref_by_identifier(session, uuid) or
              _get_vm_ref_from_name(session, instance.name))
    if vm_ref is None:
        raise exception.InstanceNotFound(instance_id=uuid)
    return vm_ref
Adding an element
dataset/ETHPy150Open openstack/nova/nova/virt/vmwareapi/vm_util.py/get_vm_ref--crossover with--dataset/ETHPy150Open ioam/holoviews/tests/testoptions.py/TestStoreInheritance.test_style_inheritance_addition