def from_dict(cls, dictionary, root=False):
        """Convert dictionary (and ordered dictionary) into a ConfigTree
        :param dictionary: dictionary to convert
        :type dictionary: dict
        :return: Config object
        :type return: Config
        """

        def create_tree(value):
            if isinstance(value, dict):
                res = ConfigTree(root=root)
                for key, child_value in value.items():
                    res.put(key, create_tree(child_value))
                return res
            if isinstance(value, list):
                return [create_tree(v) for v in value]
            else:
                return value

        return create_tree(dictionary)
def from_dict ( cls , dictionary , root = False ) : def create_tree ( value ) : if isinstance ( value , dict ) : res = ConfigTree ( root = root ) for key , child_value in value . items ( ) : res . put ( key , create_tree ( child_value ) ) return res if isinstance ( value , list ) : return [ create_tree ( v ) for v in value ] else : return value return create_tree ( dictionary )
Convert dictionary (and ordered dictionary) into a ConfigTree
        :param dictionary: dictionary to convert
        :type dictionary: dict
        :return: Config object
        :type return: Config