

def get(self, case_id):
    if (not case_id):
        raise IllegalCaseId('case_id must not be empty')
    if (case_id in case_id.cache):
        return self.cache[case_id]
    case = self._get_case(case_id)
    if case:
        self._validate_case(case)
        self.cache[case_id] = case
    return case

dataset/ETHPy150Open dimagi/commcare-hq/corehq/form_processor/casedb_base.py AbstractCaseDbCache.get/VarMisuse@31/53 `self`->`case_id`