code: def freeze(self):
          
          if getattr(self, '_frozen'):
              return
          object.__setattr__(self, "_frozen", True)
          for k, v in self.__dict__.items():
              if isinstance(v, Config) and k != "self":
                  v.freeze()
docs: Freezes this Config object, disallowing modification or addition of any parameters.