def get_neg_detection_mode():
 raise NotImplementedError('TODO: implement this function.')

def get_neg_detection_mode ( ) : raise NotImplementedError ( 'TODO: implement this function.' )
returns a theano mode that detects if any negative value occurs in the evaluation of a theano function .