code: def have_tensorcore(compute_version=None, target=None):
      """Either TensorCore support is provided in the compute capability or not
  
      Parameters
      ----------
      compute_version : str, optional
          compute capability of a GPU (e.g. "7.0").
  
      target : tvm.target.Target, optional
          The compilation target, will be used to determine arch if compute_version
          isn't specified.
      """
      if compute_version is None:
          if tvm.cuda(0).exist:
              compute_version = tvm.cuda(0).compute_version
          else:
              if target is None or "arch" not in target.attrs:
                  warnings.warn(
                      "Tensorcore will be disabled due to no CUDA architecture specified."
                      "Try specifying it by adding '-arch=sm_xx' to your target."
                  )
                  return False
              compute_version = target.attrs["arch"]
              # Compute version will be in the form "sm_{major}{minor}"
              major, minor = compute_version.split("_")[1]
              compute_version = major + "." + minor
      major, _ = parse_compute_version(compute_version)
      if major >= 7:
          return True
  
      return False
  
imports: from __future__ import absolute_import
  import os
  import subprocess
  import warnings
  import tvm._ffi
  from tvm.target import Target
  from .._ffi.base import py_str
  from .None import utils
label_desc: Use image node_id 11 for calling a global function with example usage: have_tensorcore(compute_version, target) and returns: False, True, False