def get_device_name(bdm):
    if isinstance(bdm, obj_base.NovaObject):
        return bdm.device_name
    else:
        return bdm.get('device_name') or bdm.get('mount_device')
:return: execute response element
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/blockinfo.py/get_device_name--crossover with--dataset/ETHPy150Open geopython/pywps/pywps/inout/inputs.py/BoundingBoxInput.execute_xml