code: def test_meta_schedule_task_scheduler_single():
      num_trials_per_iter = 3
      max_trials_per_task = 10
      database = ms.database.MemoryDatabase()
      round_robin = ms.task_scheduler.RoundRobin()
      round_robin.tune(
          [
              ms.TuneContext(
                  MatmulModule,
                  target=tvm.target.Target("llvm"),
                  space_generator=_schedule_matmul,
                  search_strategy=ms.search_strategy.ReplayTrace(),
                  task_name="Test",
                  rand_state=42,
              )
          ],
          [1.0],
          max_trials_global=num_trials_per_iter,
          max_trials_per_task=max_trials_per_task,
          num_trials_per_iter=64,
          builder=DummyBuilder(),
          runner=DummyRunner(),
          database=database,
          measure_callbacks=[ms.measure_callback.AddToDatabase()],
          cost_model=None,
      )
      assert len(database) == max_trials_per_task
  
imports: import random
  import weakref
  from typing import Set
  import pytest
  import tvm
  import tvm.testing
  from tvm import meta_schedule
  from tvm.meta_schedule.testing.dummy_object import DummyBuilder, DummyRunner
  from tvm.script import tir
  from tvm.tir import Schedule
label_desc: Use image node_id 3 for calling a global function with example usage: test_meta_schedule_task_scheduler_single() without return types