code: def _valid_target_kinds():
      codegen_names = tvmc.composite_target.get_codegen_names()
      return filter(
          lambda target: target not in codegen_names,
          Target.list_kinds(),
      )
  
imports: import os
  import logging
  import json
  import re
  import tvm
  from tvm.driver import tvmc
  from tvm.driver.tvmc import TVMCException
  from tvm.driver.tvmc.composite_target import get_codegen_by_target, get_codegen_names
  from tvm.ir.attrs import make_node, _ffi_api
  from tvm.ir.transform import PassContext
  from tvm.target import Target, TargetKind
label_desc: Use image node_id 1 for calling a global function with example usage: _valid_target_kinds() and returns: filter