code: def test_target_from_device_rocm(input_device):
      target = Target.from_device(input_device)
  
      f_get_target_property = tvm.get_global_func(
          "device_api.vulkan.get_target_property"
      )
      dev = tvm.vulkan()
      assert target.kind.name == "vulkan"
      assert (
          target.attrs["max_threads_per_block"]
          == dev.max_threads_per_block
      )
      assert (
          target.max_shared_memory_per_block
          == dev.max_shared_memory_per_block
      )
      assert target.thread_warp_size == dev.warp_size
      assert target.attrs["supports_float16"] == f_get_target_property(
          dev, "supports_float16"
      )
      assert target.attrs["supports_int16"] == f_get_target_property(
          dev, "supports_int16"
      )
      assert target.attrs["supports_int8"] == f_get_target_property(
          dev, "supports_int8"
      )
      assert target.attrs[
          "supports_16bit_buffer"
      ] == f_get_target_property(dev, "supports_16bit_buffer")
  
imports: import json
  import pytest
  import tvm
  import tvm.testing
  from tvm.target import Target, arm_cpu, bifrost, cuda, intel_graphics, mali, rocm, vta
label_desc: Use image node_id 49 for calling a global function with example usage: test_target_from_device_rocm(input_device) without return types