code: def clamp(value, min_value, max_value):
      """Clamps the given value between min and max"""
      if value > max_value:
          return max_value
      if value < min_value:
          return min_value
      return value
  
imports: from abc import ABCMeta, abstractmethod
  from math import ceil
label_desc: Use image node_id 1 for calling a global function with example usage: clamp(value, min_value, max_value) and returns: value, max_value, min_value