code: def test_get_tuning_tasks(onnx_mnist):
      pytest.importorskip("onnx")
  
      sut = _get_tasks(onnx_mnist)
      expected_task_type = autotvm.task.Task
  
      assert type(sut) is list
      assert len(sut) > 0
      assert all([type(x) is expected_task_type for x in sut]) is True
  
imports: import platform
  import pytest
  import os
  from unittest import mock
  from os import path
  from pathlib import Path
  import tvm
  import tvm.testing
  from tvm import autotvm, auto_scheduler
  from tvm.driver import tvmc
  from tvm.driver.tvmc.autotuner import filter_tasks, gen_task_list
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_tuning_tasks(onnx_mnist) without return types