code: def connect(self):
          
          with warnings.catch_warnings():
              warnings.filterwarnings('ignore', '.*deprecated.*')
              self._conn = client.connect(
                  init_command=self.init_fun,
                  sql_mode="NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,"
                           "STRICT_ALL_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION",
                  charset=config['connection.charset'],
                  **self.conn_info)
          self._conn.autocommit(True)
docs: Connects to the database server.