code: def check_sketches(
      mod: IRModule,
      sketches: List[Schedule],
      expected_mods: List[IRModule],
      expected_decisions: List[List[Tuple[str, List[int]]]],
      *,
      debug_mask="all",
  ):
      assert len(expected_mods) == len(expected_decisions)
      assert len(sketches) == len(expected_mods)
      expected_mods = [
          IRModule({"main": m}) if not isinstance(m, IRModule) else m
          for m in expected_mods
      ]
      sketches = list(sketches)
      for expected_id, (expected_mod, expected_decision) in enumerate(
          zip(expected_mods, expected_decisions)
      ):
          sketch_id = _find_match_sketch_id(
              mod,
              sketches,
              expected_mod,
              expected_decision,
              debug_mask=debug_mask,
          )
          if sketch_id is None:
              raise AssertionError(
                  f"Expected sketch #{expected_id} doesn't exist in the generated sketches."
              )
          sketches.pop(sketch_id)
  
file_path: tvm/python/tvm/meta_schedule/testing/space_generation.py
imports: from typing import List, Optional, Tuple, Union
  from typing_extensions import Literal
  from tvm import meta_schedule
  from tvm.ir import IRModule, structural_equal
  from tvm.target import Target
  from tvm.tir import Schedule
  from tvm.tir.schedule import Trace
  from tvm.tir.schedule.testing import verify_trace_roundtrip
label_desc: Use image node_id 5 for calling a global function with example usage: check_sketches(mod, sketches, expected_mods, expected_decisions) without return types