code: def test_top_n_dashboards_strategy(self):
      # create a top visited dashboard
      db.session.query(Log).delete()
      self.login(username="admin")
      dash = self.get_dash_by_slug("births")
      for _ in range(10):
          self.client.get(f"/superset/dashboard/{dash.id}/")
  
      strategy = TopNDashboardsStrategy(1)
      result = strategy.get_payloads()
      expected = [
          {"chart_id": chart.id, "dashboard_id": dash.id}
          for chart in dash.slices
      ]
      self.assertCountEqual(result, expected)
  
file_path: superset/tests/integration_tests/strategy_tests.py
imports: from unittest.mock import MagicMock
  from tests.integration_tests.fixtures.birth_names_dashboard import load_birth_names_dashboard_with_slices, load_birth_names_data
  from sqlalchemy import String, Date, Float
  import pytest
  import pandas
  from superset.models.slice import Slice
  from superset.utils.database import get_example_database
  from superset import db
  from superset.models.core import Log
  from superset.tags.models import get_tag, ObjectType, TaggedObject, TagType
  from superset.tasks.cache import DashboardTagsStrategy, TopNDashboardsStrategy
  from superset.utils.urls import get_url_host
  from .base_tests import SupersetTestCase
  from .dashboard_utils import create_dashboard, create_slice, create_table_metadata
  from .fixtures.unicode_dashboard import load_unicode_dashboard_with_slice, load_unicode_data
label_desc: Use image node_id 1 for calling the TestCacheWarmUp obj's underlying member method code with example usage: obj.test_top_n_dashboards_strategy() without return types