def get_recipient_info(self, message, contact_cache):
        recipient_id = message.couch_recipient

        if contact_cache in recipient_id:
            return contact_cache[recipient_id]

        doc = None
        if recipient_id not in [None, ""]:
            try:
                if message.couch_recipient_doc_type == "CommCareCase":
                    doc = CommCareCase.get(recipient_id)
                else:
                    doc = CouchUser.get_by_user_id(recipient_id)
            except Exception:
                pass

        if doc:
            doc_info = get_doc_info(doc.to_json(), self.domain)
        else:
            doc_info = None

        contact_cache[recipient_id] = doc_info

        return doc_info
dataset/ETHPy150Open dimagi/commcare-hq/custom/ilsgateway/tanzania/reports/unrecognized_sms.py/UnrecognizedSMSReport.get_recipient_info/swapped operands of `in`