code: def check(self, value):
          
          if self._inclusive:
              return False if self._min <= value <= self._max else True
          else:
              return False if value > self._max or value < self._min else True
docs: check if a value is correct according to threshold
  
          arguments:
              value: the value to check