code: def _make_virtual_device(device):
      if isinstance(device, _Device):
          return target.VirtualDevice(device)
      if isinstance(device, str):
          return target.VirtualDevice(_nd.device(device))
      if isinstance(device, target.VirtualDevice):
          return device
      raise ValueError(
          f"expecting a Device or device name, but received a {type(device)}"
      )
  
file_path: tvm/python/tvm/relay/op/annotation/annotation.py
imports: from tvm import target
  from tvm.runtime import ndarray
  from tvm.runtime import Device
  from .None import _make
  from ..None import op
label_desc: Use image node_id 1 for calling a global function with example usage: _make_virtual_device(device) and returns: target, target, device