code: def nvcc_kernel(name, params, body):
      """
      Return the c code of a kernel function.
  
      Parameters
      ----------
      params
          The parameters to the function as one or more strings.
      body
          The [nested] list of statements for the body of the function.
          These will be separated by ';' characters.
  
      """
      paramstr = ", ".join(params)
  
      def flatbody():
          for b in body:
              if isinstance(b, (list, tuple)):
                  for bb in b:
                      yield bb
              else:
                  yield b
  
      bodystr = ";\n".join(flatbody())
      return (
          """#include "cluda.h"
  
      KERNEL void %(name)s (%(paramstr)s)
      {
          %(bodystr)s;
      }
      """
          % locals()
      )
  
file_path: Theano/theano/gpuarray/kernel_codegen.py
imports: from __future__ import absolute_import, print_function, division
label_desc: Use image node_id 1 for calling a global function with example usage: nvcc_kernel(name, params, body) and returns: unknown