code: def exponential(scale, size=None, dtype=float):
      """Exponential distribution.
  
      Returns an array of samples drawn from the exponential distribution. Its
      probability density function is defined as
  
      .. math::
         f(x) = \\frac{1}{\\beta}\\exp (-\\frac{x}{\\beta}).
  
      Args:
          scale (float or array_like of floats): The scale parameter
              :math:`\\beta`.
          size (int or tuple of ints): The shape of the array. If ``None``, a
              zero-dimensional array is generated.
          dtype: Data type specifier. Only :class:`numpy.float32` and
              :class:`numpy.float64` types are allowed.
  
      Returns:
          cupy.ndarray: Samples drawn from the exponential distribution.
  
      .. seealso::
          :func:`numpy.random.exponential`
      """
      rs = _generator.get_random_state()
      return rs.exponential(scale, size, dtype)
  
imports: from cupy.random import _generator
  from cupy import _util
label_desc: Use image node_id 5 for calling a global function with example usage: exponential(scale, size, dtype) and returns: rs