code: def get_native_cuda_compute_capabilities(environ_cp):
      """Get native cuda compute capabilities.
  
      Args:
        environ_cp: copy of the os.environ.
  
      Returns:
        string of native cuda compute capabilities, separated by comma.
      """
      device_query_bin = os.path.join(
          environ_cp.get("CUDA_TOOLKIT_PATH"),
          "extras/demo_suite/deviceQuery",
      )
      if os.path.isfile(device_query_bin) and os.access(
          device_query_bin, os.X_OK
      ):
          try:
              output = run_shell(device_query_bin).split("\n")
              pattern = re.compile("[0-9]*\\.[0-9]*")
              output = [
                  pattern.search(x) for x in output if "Capability" in x
              ]
              output = ",".join(
                  x.group() for x in output if x is not None
              )
          except subprocess.CalledProcessError:
              output = ""
      else:
          output = ""
      return output
  
imports: import argparse
  import os
  import pathlib
  import platform
  import re
  import subprocess
  import sys
label_desc: Use image node_id 30 for calling a global function with example usage: get_native_cuda_compute_capabilities(environ_cp) and returns: output