code: def test_benchmark_suite__get_tasks() -> None:
      set1 = Mock(BenchmarkSet)
      set1.name = "set1"
      set1.get_tasks.return_value = [
          BenchmarkTask(
              dataset_name="ds",
              model_name="md",
              do_compile=False,
              do_optimise=False,
              do_predict=True,
              do_posterior=False,
              repetitions=2,
          ),
          BenchmarkTask(
              dataset_name="ds1",
              model_name="md1",
              do_compile=False,
              do_optimise=False,
              do_predict=True,
              do_posterior=True,
              repetitions=2,
          ),
      ]
      set2 = Mock(BenchmarkSet)
      set2.name = "set2"
      set2.get_tasks.return_value = [
          BenchmarkTask(
              dataset_name="ds",
              model_name="md",
              do_compile=False,
              do_optimise=False,
              do_predict=False,
              do_posterior=True,
              repetitions=2,
          ),
          BenchmarkTask(
              dataset_name="ds2",
              model_name="md1",
              do_compile=False,
              do_optimise=False,
              do_predict=True,
              do_posterior=True,
              repetitions=2,
          ),
      ]
      set3 = Mock(BenchmarkSet)
      set3.name = "set3"
      set3.get_tasks.return_value = [
          BenchmarkTask(
              dataset_name="ds",
              model_name="md",
              do_compile=False,
              do_optimise=False,
              do_predict=False,
              do_posterior=False,
              repetitions=5,
          ),
          BenchmarkTask(
              dataset_name="ds1",
              model_name="md3",
              do_compile=False,
              do_optimise=False,
              do_predict=True,
              do_posterior=True,
              repetitions=2,
          ),
      ]
      suite = BenchmarkSuite(
          name="test",
          description="Suite used in a test.",
          sets=[set1, set2, set3],
      )
  
      assert [
          BenchmarkTask(
              dataset_name="ds",
              model_name="md",
              do_compile=False,
              do_optimise=False,
              do_predict=True,
              do_posterior=True,
              repetitions=5,
          ),
          BenchmarkTask(
              dataset_name="ds1",
              model_name="md1",
              do_compile=False,
              do_optimise=False,
              do_predict=True,
              do_posterior=True,
              repetitions=2,
          ),
          BenchmarkTask(
              dataset_name="ds2",
              model_name="md1",
              do_compile=False,
              do_optimise=False,
              do_predict=True,
              do_posterior=True,
              repetitions=2,
          ),
          BenchmarkTask(
              dataset_name="ds1",
              model_name="md3",
              do_compile=False,
              do_optimise=False,
              do_predict=True,
              do_posterior=True,
              repetitions=2,
          ),
      ] == suite.get_tasks()
  
file_path: GPflow/tests/benchmark/test_benchmark_api.py
imports: from typing import Collection
  from unittest.mock import Mock
  import pandas
  import pytest
  import benchmark.datasets
  import benchmark.models
  import benchmark.plotters
  from benchmark.benchmark_api import BenchmarkSet, BenchmarkSuite, BenchmarkTask
  from benchmark.grouping import GroupingKey
  from benchmark.grouping import GroupingSpec
label_desc: Use image node_id 3 for calling a global function with example usage: test_benchmark_suite__get_tasks() without return types