code: def _save_new_query(self, query: Query) -> None:
      try:
          self._query_dao.create(query)
      except DAOCreateFailedError as ex:
          raise SqlLabException(
              self._execution_context,
              SupersetErrorType.GENERIC_DB_ENGINE_ERROR,
              "The query record was not created as expected",
              ex,
              "Please contact an administrator for further assistance or try again.",
          ) from ex
  
imports: from __future__ import annotations
  import copy
  import logging
  from typing import Any, TYPE_CHECKING
  from flask_babel import gettext
  from superset.commands.base import BaseCommand
  from superset.common.db_query_status import QueryStatus
  from superset.daos.exceptions import DAOCreateFailedError
  from superset.errors import SupersetErrorType
  from superset.exceptions import SupersetErrorException, SupersetErrorsException, SupersetGenericErrorException
  from superset.models.core import Database
  from superset.models.sql_lab import Query
  from superset.sqllab.command_status import SqlJsonExecutionStatus
  from superset.sqllab.exceptions import QueryIsForbiddenToAccessException, SqlLabException
  from superset.sqllab.execution_context_convertor import ExecutionContextConvertor
  from superset.sqllab.limiting_factor import LimitingFactor
label_desc: Use image node_id 9 for calling the ExecuteSqlCommand obj's underlying member method code with example usage: obj._save_new_query(query) without return types