@raise_if_unsaved
    def get_root(self):
        if self.is_root_node() and type(self) == self._tree_manager.tree_model:
            return self

        return self._tree_manager._mptt_filter(
            tree_id=self._mpttfield('tree_id'),
            parent=None,
        ).get()
Load a conf.yaml file or string and return a YAMLConfiguration object.
dataset/ETHPy150Open django-mptt/django-mptt/mptt/models.py/MPTTModel.get_root--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/conf.py/LoadSingleConf