code: def test_valid_codegen():
      codegen = tvmc.composite_target.get_codegen_by_target(
          "compute-library"
      )
  
      assert codegen is not None
      assert codegen["pass_pipeline"] is not None
  
file_path: tvm/tests/python/driver/tvmc/test_composite_target.py
imports: import argparse
  import os
  import shutil
  from inspect import isfunction
  from os import path
  import pytest
  import tvm
  from tvm.driver import tvmc
  from tvm.driver.tvmc import TVMCException
label_desc: Use image node_id 2 for calling a global function with example usage: test_valid_codegen() without return types