code: def freeze(self):
          
          self.__dict__['_frozen'] = True
          for child in self._children.values():
              child.freeze()
docs: Causes the ConfigTree to become read only.
  
          This is useful for loading and then freezing configurations that should not be modified at runtime.