def _make_user_group_or_location_indicator(property_name, column_id):
    return {
        "datatype": "string",
        "type": "expression",
        "column_id": column_id,
        "expression": {
            "test": {
                "operator": "eq",
                "expression": {
                    "value_expression": {
                        "type": "property_name",
                        "property_name": "doc_type"
                    },
                    "type": "related_doc",
                    "related_doc_type": "Group",
                    "doc_id_expression": {
                        "type": "property_name",
                        "property_name": property_name
                    }
                },
                "type": "boolean_expression",
                "property_value": "Group"
            },
            "expression_if_true": {
                "value_expression": {
                    "type": "property_name",
                    "property_name": "name"
                },
                "type": "related_doc",
                "related_doc_type": "Group",
                "doc_id_expression": {
                    "type": "property_name",
                    "property_name": property_name
                }
            },
            "type": "conditional",
            "expression_if_false": {
                "type": "conditional",
                "test": {
                    "operator": "eq",
                    "expression": {
                        "value_expression": {
                            "type": "property_name",
                            "property_name": "doc_type"
                        },
                        "type": "related_doc",
                        "related_doc_type": "CommCareUser",
                        "doc_id_expression": {
                            "type": "property_name",
                            "property_name": property_name
                        }
                    },
                    "type": "boolean_expression",
                    "property_value": "CommCareUser"
                },
                "expression_if_true": {
                    "value_expression": {
                        "type": "property_name",
                        "property_name": "username"
                    },
                    "type": "related_doc",
                    "related_doc_type": "CommCareUser",
                    "doc_id_expression": {
                        "type": "property_name",
                        "property_name": property_name
                    }
                },
                "expression_if_false": {
                    "value_expression": {
                        "type": "property_name",
                        "property_name": "name"
                    },
                    "type": "related_doc",
                    "related_doc_type": "Location",
                    "doc_id_expression": {
                        "type": "property_name",
                        "property_name": property_name
                    }
                }
            }
        }
    }
Return a data source indicator config with the given column_id that stores
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/userreports/reports/builder/__init__.py/_make_user_group_or_location_indicator