code: def set_config(self, config):
          
          with self._conn:
              self._conn.execute("DELETE FROM config")
              self._conn.execute('INSERT INTO config VALUES(?)',
                                 (serialize_config(config),))
docs: Set (replace) the configuration for the session.
  
          Args:
            config: Configuration object