def add_subconfig(self, name, subconfig):
        if not isinstance(subconfig, Config):
            raise TypeError(
                "Subconfig has to be of Config type. "
                "Got {0} instead".format(type(subconfig))
            )

        self._subconfigs[name] = subconfig
        setattr(self, name, subconfig)
Attaches a sub-config to the current Config object
dataset/ETHPy150Open oleiade/etcaetera/etcaetera/config.py/Config.add_subconfig