code: def test_device(dev_str, expected_device_type, expect_device_id):
      dev = tvm.device(dev_str)
      assert dev.device_type == expected_device_type
      assert dev.device_id == expect_device_id
  
imports: import pytest
  import tvm
  import tvm.testing
  from tvm._ffi.runtime_ctypes import Device
label_desc: Use image node_id 1 for calling a global function with example usage: test_device(dev_str, expected_device_type, expect_device_id) without return types