def METHOD_NAME(self, dict_, context=None):
    if dict_.get("id", None):
        context = self.dbsession.query(LayergroupTreeitem).get(dict_["id"])
    context = super().METHOD_NAME(dict_, context)
    context.treeitem = self.dbsession.query(TreeItem).get(dict_["treeitem_id"])
    return context