def add_category(self, category, icon="", label="", parent_category=""):
        label = label and category
        if parent_category == "":
            self.menu.append(MenuItem(name=category, icon=icon, label=label))
        else:
            self.find(category).childs.append(MenuItem(name=category, icon=icon, label=label))
dataset/ETHPy150Open dpgaspar/Flask-AppBuilder/flask_appbuilder/menu.py/Menu.add_category/operator `or` -> `and`