def _is_compute_port(self, port):
        try:
            if (port['device_id'] and uuidutils.is_uuid_like(port['device_id'])
                    and port['device_owner'].startswith(
                        constants.DEVICE_OWNER_COMPUTE_PREFIX)):
                return True
        except (__HOLE__, AttributeError):
            pass
        return False
dataset/ETHPy150Open openstack/neutron/neutron/notifiers/nova.py/Notifier._is_compute_port