def test_arg_of_sigmoid_bad():
 X = T.matrix()
 Y = T.nnet.softmax(X)
 try:
  Z = arg_of_sigmoid(Y)
 except TypeError:
  return
 assert False

def test_arg_of_sigmoid_bad ( ) : X = T . matrix ( ) Y = T . nnet . softmax ( X ) try : Z = arg_of_sigmoid ( Y ) except TypeError : return assert False
tests that arg_of_sigmoid raises an error when given a bad input .