code: def set_cuda_target_arch(arch):
      """THIS API IS DEPRECATED.
  
      set target architecture of nvcc compiler
  
      Parameters
      ----------
      arch: str or list
          The argument of nvcc -arch. (e.g. "sm_51", "sm_62")
          it can also be a count of gencode arguments pass to nvcc command line,
          e.g., ["-gencode", "arch=compute_52,code=sm_52", "-gencode", "arch=compute_70,code=sm_70"]
      """
      raise ValueError(
          "The API 'autotvm.measure.set_cuda_target_arch' is deprecated."
          "Try specifying it by adding '-arch=sm_xx' to your target, such as 'cuda -arch=sm_86'."
          "See https://github.com/apache/tvm/pull/9544 for the upgrade guide."
      )
  
imports: import contextlib
  import logging
  import os
  import shutil
  import tempfile
  import threading
  import time
  import traceback
  import typing
  import warnings
  from collections import namedtuple
  from random import getrandbits
  import tvm._ffi
  import tvm.ir.transform
  from tvm import nd
  from tvm import rpc
  from tvm.autotvm.env import AutotvmGlobalScope, reset_global_scope
  from tvm.contrib import ndk, stackvm, tar
  from tvm.contrib.popen_pool import PopenPoolExecutor
  from tvm.driver import build
  from tvm.error import TVMError
  from tvm.target import Target
  from ..env import AutotvmGlobalScope
  from ..task.space import InstantiationError
  from ..utils import get_const_tuple
  from .measure import Builder, MeasureErrorNo, MeasureResult, Runner
label_desc: Use image node_id 6 for calling a global function with example usage: set_cuda_target_arch(arch) without return types