code: def get_compute_capability(dev):
      """
      Get the compute capability of the specified device.
  
      Retrieve the compute capability of the specified CUDA device and
      return it as a floating point value.
  
      Parameters
      ----------
      d : pycuda.driver.Device
          Device object to examine.
  
      Returns
      -------
      c : float
          Compute capability.
      """
  
      return float(".".join([str(i) for i in dev.compute_capability()]))
  
imports: from __future__ import absolute_import, division
  import atexit
  import numbers
  from string import Template
  import pycuda.driver
  import pycuda.gpuarray
  import pycuda.elementwise
  import pycuda.reduction
  import pycuda.scan
  import pycuda.tools
  from pycuda.tools import context_dependent_memoize, dtype_to_ctype
  from pycuda.compiler import SourceModule
  from pytools import memoize
  import numpy
  from .None import cuda
  from .None import cublas
  import sys
  import operator
label_desc: Use image node_id 6 for calling a global function with example usage: get_compute_capability(dev) and returns: float