def test_linear():
 xs = [1, 5, True, None, 'foo']
 for x in xs:
  assert (x == activations.linear(x))

def test_linear ( ) : xs = [ 1 , 5 , True , None , 'foo' ] for x in xs : assert ( x == activations . linear ( x ) )
this function does no input validation .