code: def test_report_for_dashboard_with_tabs(
      create_dashboard_permalink_mock: MagicMock,
      dashboard_screenshot_mock: MagicMock,
      send_email_smtp_mock: MagicMock,
      tabbed_dashboard: Dashboard,
  ) -> None:
      create_dashboard_permalink_mock.return_value = "permalink"
      dashboard_screenshot_mock.get_screenshot.return_value = (
          b"test-image"
      )
      current_app.config["ALERT_REPORTS_NOTIFICATION_DRY_RUN"] = False
  
      with create_dashboard_report(
          dashboard=tabbed_dashboard,
          extra={"active_tabs": ["TAB-L1B", "TAB-L2BB"]},
          name="test report tabbed dashboard",
      ) as report_schedule:
          dashboard: Dashboard = report_schedule.dashboard
          AsyncExecuteReportScheduleCommand(
              str(uuid4()), report_schedule.id, datetime.utcnow()
          ).run()
          dashboard_state = report_schedule.extra.get("dashboard", {})
          permalink_key = CreateDashboardPermalinkCommand(
              str(dashboard.id), dashboard_state
          ).run()
  
          assert dashboard_screenshot_mock.call_count == 1
          url = dashboard_screenshot_mock.call_args.args[0]
          assert url.endswith(f"/superset/dashboard/p/{permalink_key}/")
          assert send_email_smtp_mock.call_count == 1
          assert (
              len(send_email_smtp_mock.call_args.kwargs["images"]) == 1
          )
  
file_path: superset/tests/integration_tests/reports/commands/execute_dashboard_report_tests.py
imports: from datetime import datetime
  from unittest.mock import MagicMock, patch
  from uuid import uuid4
  from flask import current_app
  from superset.commands.dashboard.permalink.create import CreateDashboardPermalinkCommand
  from superset.commands.report.execute import AsyncExecuteReportScheduleCommand
  from superset.models.dashboard import Dashboard
  from superset.reports.models import ReportSourceFormat
  from tests.integration_tests.fixtures.tabbed_dashboard import tabbed_dashboard
  from tests.integration_tests.reports.utils import create_dashboard_report
label_desc: Use image node_id 1 for calling a global function with example usage: test_report_for_dashboard_with_tabs(create_dashboard_permalink_mock, dashboard_screenshot_mock, send_email_smtp_mock, tabbed_dashboard) without return types