code: def rand(queue, shape, dtype, luxury=None, a=0, b=1):
      """Return an array of *shape* filled with random values of *dtype*
      in the range :math:`[a, b)`.
      """
  
      if luxury is not None:
          from warnings import warn
  
          warn(
              "Specifying the 'luxury' argument is deprecated and will stop being "
              "supported in PyOpenCL 2018.x",
              stacklevel=2,
          )
  
      from pyopencl.array import Array
  
      gen = _get_generator(queue.context)
      result = Array(queue, shape, dtype)
      gen.fill_uniform(result, a=a, b=b)
      return result
  
imports: import pyopencl
  import pyopencl.array
  import pyopencl.cltypes
  from pyopencl.tools import first_arg_dependent_memoize
  from pytools import memoize_method
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: rand(queue, shape, dtype, luxury, a, b) and returns: result