code: def test_raise_exception_for_invalid_tab_ids(
      tabbed_dashboard: Dashboard,
  ) -> None:
      with pytest.raises(ReportScheduleInvalidError) as exc_info:
          CreateReportScheduleCommand(
              {
                  **DASHBOARD_REPORT_SCHEDULE_DEFAULTS,
                  "name": "tabbed dashboard report (invalid tab ids)",
                  "dashboard": tabbed_dashboard.id,
                  "extra": {
                      "dashboard": {"activeTabs": ["TAB-INVALID_ID"]}
                  },
              }
          ).run()
      assert "Invalid tab ids" in str(
          exc_info.value.normalized_messages()
      )
  
      with pytest.raises(ReportScheduleInvalidError) as exc_info:
          CreateReportScheduleCommand(
              {
                  **DASHBOARD_REPORT_SCHEDULE_DEFAULTS,
                  "name": "tabbed dashboard report (invalid tab ids in anchor)",
                  "dashboard": tabbed_dashboard.id,
                  "extra": {
                      "dashboard": {
                          "activeTabs": ["TAB-L1AA"],
                          "anchor": "TAB-INVALID_ID",
                      }
                  },
              }
          ).run()
      assert "Invalid tab ids" in str(
          exc_info.value.normalized_messages()
      )
  
file_path: superset/tests/integration_tests/reports/commands/create_dashboard_report_tests.py
imports: import pytest
  from superset import db
  from superset.commands.report.create import CreateReportScheduleCommand
  from superset.commands.report.exceptions import ReportScheduleInvalidError
  from superset.models.dashboard import Dashboard
  from superset.reports.models import ReportCreationMethod, ReportRecipientType, ReportScheduleType
  from tests.integration_tests.fixtures.tabbed_dashboard import tabbed_dashboard
label_desc: Use image node_id 2 for calling a global function with example usage: test_raise_exception_for_invalid_tab_ids(tabbed_dashboard) without return types