code: def clamp(pos, offset, bound):
      return min(bound - 1, max(0, pos + offset))
  
imports: import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: clamp(pos, offset, bound) and returns: min