code: def test_target_host_removed():
      """After MakePackedAPI, host-side target should be the host
  
      MakePackedAPI is the last transform that requires both the device
      and the host.  After MakePackedAPI, the target attribute should
      only contain the host-side target.
      """
  
      host = tvm.target.Target("llvm")
  
      @I.ir_module
      class before:
          @T.prim_func
          def main(A: T.Buffer(1, "float32")):
              T.func_attr(
                  {
                      "global_symbol": "main",
                      "target": T.target("cuda", host=host),
                  }
              )
              T.evaluate(0)
  
      after = tvm.tir.transform.MakePackedAPI()(before)
      target_attr = after["main"].attrs["target"]
      assert str(host) == str(target_attr)
  
file_path: tvm/tests/python/tir-transform/test_tir_transform_make_packed_api.py
imports: import pytest
  import tvm
  import tvm.testing
  from tvm import te, tir
  from tvm.script import tir, ir
  from tvm.driver.build_module import schedule_to_module
label_desc: Use image node_id 8 for calling a global function with example usage: test_target_host_removed() without return types