code: def kernel(zr, zi, cr, ci, lim, cutoff):
      """Computes the number of iterations `n` such that
      |z_n| > `lim`, where `z_n = z_{n-1}**2 + c`.
      """
      count = 0
      while ((zr * zr + zi * zi) < (lim * lim)) and count < cutoff:
          zr, zi = zr * zr - zi * zi + cr, 2 * zr * zi + ci
          count += 1
      return count
  
imports: import numpy
  from time import time
label_desc: Use image node_id 1 for calling a global function with example usage: kernel(zr, zi, cr, ci, lim, cutoff) and returns: count