code: def check_assoc_value(value):
      if value < 0:
          value = 0
  
      if value > 1:
          value = 1
  
      return value
  
imports: from copy import deepcopy
  import numpy
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: check_assoc_value(value) and returns: value