code: def check_transpose():
      from pycuda.curandom import rand
  
      for i in numpy.arange(10, 13, 0.125):
          size = int(((2**i) // 32) * 32)
          print(size)
  
          source = rand((size, size), dtype=numpy.float32)
  
          result = transpose(source)
  
          err = source.get().T - result.get()
          err_norm = la.norm(err)
  
          source.gpudata.free()
          result.gpudata.free()
  
          assert err_norm == 0, (size, err_norm)
  
file_path: pycuda/examples/from-wiki/matrix_transpose.py
imports: import pycuda.driver
  import pycuda.gpuarray
  import pycuda.autoinit
  from pycuda.compiler import SourceModule
  import numpy
  import numpy.linalg
  from pycuda.tools import context_dependent_memoize
label_desc: Use image node_id 5 for calling a global function with example usage: check_transpose() without return types