code: def _set_pixel(im, x, y, c, val):
      if (
          x < 0
          or y < 0
          or c < 0
          or x >= im.shape[2]
          or y >= im.shape[1]
          or c >= im.shape[0]
      ):
          return
      im[c][y][x] = val
  
imports: from __future__ import division
  import math
  from collections import namedtuple
  from functools import cmp_to_key
  import numpy
label_desc: Use image node_id 16 for calling a global function with example usage: _set_pixel(im, x, y, c, val) without return types