def get_form(self, form_id):
        try:
            form = next(form for form in self.forms if form.form_id == form_id)
        except __HOLE__:
            form = CaseFormMeta(form_id=form_id)
            self.forms.append(form)
        return form
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reports/formdetails/readable.py/CaseProperty.get_form