code: def maybe_warn(target, func_name):
      if (
          get_global_func(func_name, allow_missing=True)
          and not "thrust" in target.libs
      ):
          logging.warning(
              "TVM is built with thrust but thrust is not used."
          )
      if (
          "thrust" in target.libs
          and get_global_func(func_name, allow_missing=True) is None
      ):
          logging.warning(
              "thrust is requested but TVM is not built with thrust."
          )
  
imports: import logging
  from tvm._ffi import get_global_func
label_desc: Use image node_id 1 for calling a global function with example usage: maybe_warn(target, func_name) without return types