code: def test_error_if_target_missing():
      with pytest.raises(
          TVMCException,
          match="Passed --target-opencl-max_num_threads but did not specify opencl target",
      ):
          target_from_cli(
              "llvm",
              {"opencl": {"max_num_threads": 404}},
          )
  
file_path: tvm/tests/python/driver/tvmc/test_target_options.py
imports: import argparse
  import pytest
  import tvm
  from tvm.driver.tvmc import TVMCException
  from tvm.driver.tvmc.target import generate_target_args, reconstruct_target_args, target_from_cli
label_desc: Use image node_id 11 for calling a global function with example usage: test_error_if_target_missing() without return types