<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _constant_cumulative_distribution(self, X):
 """Cumulative distribution for the degenerate case of constant distribution. Note that the output of this method will be an array whose unique values are 0 and 1. More information can be found here: https://en.wikipedia.org/wiki/Degenerate_distribution Args: X (numpy.ndarray):
 Values to compute cdf to. Returns: numpy.ndarray: Cumulative distribution for the given values. """

        result = np.ones(X.shape)
        result[np.nonzero(X < self.constant_value)] = 0

        return result