<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check(self, value):
 """ Check a value falls within a bound. Parameters value : scalar or ndarray value to test Returns ------- bool: If all values fall within bounds Example ------- True False True False """

        if self.lower:
            if np.any(value < self.lower):
                return False

        if self.upper:
            if np.any(value > self.upper):
                return False

        return True