code: def clip(z, _max):
      out = np.empty(z.shape, dtype=z.dtype)
      for i in range(len(z)):
          if abs(z[i]) > _max:
              out[i] = limit1(z[i]) * _max
          else:
              out[i] = z[i]
  
      return out
  
label_desc: Use image node_id 2 for calling a global function with example usage: clip(z, _max) and returns: out