code: def test_execute_query_failed_no_retry(
      mocker: MockFixture, app_context: None
  ) -> None:
      from superset.commands.report.alert import (
          AlertCommand,
          AlertQueryTimeout,
      )
  
      execute_query_mock = mocker.patch(
          "superset.commands.report.alert.AlertCommand._execute_query"
      )
  
      def _mocked_execute_query() -> None:
          raise AlertQueryTimeout
  
      execute_query_mock.side_effect = _mocked_execute_query
      execute_query_mock.__name__ = "mocked_execute_query"
  
      command = AlertCommand(report_schedule=mocker.Mock())
  
      with suppress(AlertQueryTimeout):
          command.validate()
      assert execute_query_mock.call_count == 1
  
file_path: superset/tests/integration_tests/reports/alert_tests.py
imports: from contextlib import nullcontext, suppress
  from typing import Optional, Union
  import pandas
  import pytest
  from pytest_mock import MockFixture
  from superset.commands.report.exceptions import AlertQueryError
  from superset.reports.models import ReportCreationMethod, ReportScheduleType
  from superset.tasks.types import ExecutorType
  from superset.utils.database import get_example_database
  from tests.integration_tests.test_app import app
label_desc: Use image node_id 4 for calling a global function with example usage: test_execute_query_failed_no_retry(mocker, app_context) without return types