def get_xml(self):
        if (self._attachments and self._attachments in ATTACHMENT_NAME
                and 'data' in self._attachments[ATTACHMENT_NAME]):
            return base64.b64decode(self._attachments[ATTACHMENT_NAME]['data'])
        try:
            return self.fetch_attachment(ATTACHMENT_NAME)
        except ResourceNotFound:
            logging.warn("no xml found for %s, trying old attachment scheme." % self.get_id)
            try:
                return self[const.TAG_XML]
            except AttributeError:
                return None
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/couchforms/models.py/XFormInstance.get_xml/swapped operands of `in`