code: def _target_to_requirement(target):
      if isinstance(target, str):
          target = tvm.target.Target(target)
  
      # mapping from target to decorator
      if target.kind.name == "cuda" and "cudnn" in target.attrs.get(
          "libs", []
      ):
          return utils.requires_cudnn.marks()
      if target.kind.name == "cuda" and "cublas" in target.attrs.get(
          "libs", []
      ):
          return utils.requires_cublas.marks()
      if target.kind.name == "cuda":
          return utils.requires_cuda.marks()
      if target.kind.name == "rocm":
          return utils.requires_rocm.marks()
      if target.kind.name == "vulkan":
          return utils.requires_vulkan.marks()
      if target.kind.name == "nvptx":
          return utils.requires_nvptx.marks()
      if target.kind.name == "metal":
          return utils.requires_metal.marks()
      if target.kind.name == "opencl":
          return utils.requires_opencl.marks()
      if target.kind.name == "llvm":
          return utils.requires_llvm.marks()
      if target.kind.name == "hexagon":
          return utils.requires_hexagon.marks()
  
      return []
  
file_path: tvm/python/tvm/testing/plugin.py
imports: import pytest
  import _pytest
  import tvm
  from tvm.testing import utils
label_desc: Use image node_id 12 for calling a global function with example usage: _target_to_requirement(target) and returns: list, utils, utils, utils, utils, utils, utils, utils, utils, utils, utils