code: def _generate_config(self, mapping_class):
          
          config = mapping_class()
          self._walk_config_copy_values(
              self.option_definitions,
              config,
              mapping_class
          )
          return config
docs: This routine generates a copy of the DotDict based config