def get_property(dict_obj, name, default=None):
    if name in dict_obj:
        if type(dict_obj[name]) is dict:
            return dict_obj[name]["#value"]
        return dict_obj[name]
    else:
        return default if default is not None else EMPTY_FIELD
dataset/ETHPy150Open dimagi/commcare-hq/custom/bihar/reports/display.py/get_property/original