def _format_status(self, image):
        """Update the status field to standardize format."""
        status_mapping = {
            'active': 'ACTIVE',
            'queued': 'SAVING',
            'saving': 'SAVING',
            'deleted': 'DELETED',
            'pending_delete': 'DELETED',
            'killed': 'ERROR',
        }

        try:
            image['status'] = status_mapping[image['status']]
        except __HOLE__:
            image['status'] = 'UNKNOWN'
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/views/images.py/ViewBuilder._format_status