code: def test_filter_tasks_invalid(value, err_msg):
      with pytest.raises(AssertionError, match=err_msg):
          filter_tasks(list(range(10)), value)
  
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 18 for calling a global function with example usage: test_filter_tasks_invalid(value, err_msg) without return types