(cls, dic, key_list)
return dic
Create a configuration tree using the given dict.
        Any dict-like objects inside dict will be treated as a new CfgNode.

        Args:
            dic (dict):
            key_list (list[str]): a list of names which index this CfgNode from the root.
                Currently only used for logging purposes.
Create a configuration tree using the given dict.
        Any dict-like objects inside dict will be treated as a new CfgNode.
Create a configuration tree using the given dict . Any dict - like objects inside dict will be treated as a new CfgNode .
def _create_config_tree_from_dict(cls, dic, key_list):
        """
        Create a configuration tree using the given dict.
        Any dict-like objects inside dict will be treated as a new CfgNode.

        Args:
            dic (dict):
            key_list (list[str]): a list of names which index this CfgNode from the root.
                Currently only used for logging purposes.
        """
        dic = copy.deepcopy(dic)
        for k, v in dic.items():
            if isinstance(v, dict):
                # Convert dict to CfgNode
                dic[k] = cls(v, key_list=key_list + [k])
            else:
                # Check for valid leaf type or nested CfgNode
                _assert_with_logging(
                    _valid_type(v, allow_cfg_node=False),
                    "Key {} with value {} is not a valid type; valid types: {}".format(
                        ".".join(key_list + [str(k)]), type(v), _VALID_TYPES
                    ),
                )
        return dic
def _create_config_tree_from_dict ( cls , dic , key_list ) : dic = copy . deepcopy ( dic ) for k , v in dic . items ( ) : if isinstance ( v , dict ) : # Convert dict to CfgNode dic [ k ] = cls ( v , key_list = key_list + [ k ] ) else : # Check for valid leaf type or nested CfgNode _assert_with_logging ( _valid_type ( v , allow_cfg_node = False ) , "Key {} with value {} is not a valid type; valid types: {}" . format ( "." . join ( key_list + [ str ( k ) ] ) , type ( v ) , _VALID_TYPES ) , ) return dic