code: def fmod(arg, mod, stream=None):
      """Return the floating point remainder of the division `arg/mod`,
      for each element in `arg` and `mod`."""
      result = gpuarray.GPUArray(arg.shape, arg.dtype)
  
      if not arg.flags.forc or not mod.flags.forc:
          raise RuntimeError(
              "only contiguous arrays may "
              "be used as arguments to this operation"
          )
  
      func = elementwise.get_fmod_kernel()
      func.prepared_async_call(
          arg._grid,
          arg._block,
          stream,
          arg.gpudata,
          mod.gpudata,
          result.gpudata,
          arg.mem_size,
      )
  
      return result
  
file_path: pycuda/pycuda/cumath.py
imports: import pycuda.gpuarray
  import pycuda.elementwise
  import numpy
  import warnings
  from pycuda.driver import Stream
label_desc: Use image node_id 2 for calling a global function with example usage: fmod(arg, mod, stream) and returns: result