code: def get_cuda_arch(arch):
      if arch is None:
          return None
  
      if not isinstance(arch, str):
          raise TypeError(
              "Expecting parameter arch as a str, while got a {}".format(
                  str(type(arch))
              )
          )
  
      if len(arch) == 0:
          return None
  
      # an example of arch string,
      # -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35
      # -gencode;arch=compute_75,code=[sm_75,compute_75] --fatbin-options -compress-all
      archs = []
      flags = arch.replace("-gencode;", "-gencode ").split()
      for flag in flags:
          if flag.startswith("-gencode") or flag.startswith("arch="):
              archs.append(flag)
  
      return archs
  
file_path: mxnet/contrib/tvmop/compile.py
imports: import tvm
  from tvm import autotvm
  import os
  import argparse
  import re
  import json
  import logging
  import sys
  import subprocess
  from tvmop.opdef import __OP_DEF__
  from tvmop.space import ConfigSpaces, ConfigSpace
  from tvm.autotvm.measure.measure_methods import set_cuda_target_arch
label_desc: Use image node_id 4 for calling a global function with example usage: get_cuda_arch(arch) and returns: archs, None, None