def get_config(app, module):
	config = frappe.get_module("{app}.config.{module}".format(app=app, module=module))
	config = config.get_data()

	for section in config:
		for item in section["items"]:
			if not "label" in item:
				item["label"] = _(item["name"])
	return config
Load module info from `[app].config.[module]`.
dataset/ETHPy150Open frappe/frappe/frappe/desk/moduleview.py/get_config