def get_property(self, name, allow_parent=False):
        if not allow_parent:
            assert '/' not in name, "Add parent properties to the correct case type"
        try:
            prop = next(prop for prop in self.properties if prop.name == name)
        except __HOLE__:
            prop = CaseProperty(name=name)
            self.properties.append(prop)
        return prop
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reports/formdetails/readable.py/CaseTypeMeta.get_property