code: def test_execute_query_succeeded_no_retry(
      mocker: MockFixture, app_context: None
  ) -> None:
      from superset.commands.report.alert import AlertCommand
  
      execute_query_mock = mocker.patch(
          "superset.commands.report.alert.AlertCommand._execute_query",
          side_effect=lambda: pd.DataFrame([{"sample_col": 0}]),
      )
  
      command = AlertCommand(report_schedule=mocker.Mock())
  
      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 2 for calling a global function with example usage: test_execute_query_succeeded_no_retry(mocker, app_context) without return types