code: def from_dict(settings):
      
  
      assert isinstance(settings, dict), "`settings` must be of type dict"
      for key, value in settings.items():
          setattr(self, key, value)
docs: Apply settings from dictionary
  
      Arguments:
          settings (dict): Settings in the form of a dictionary