def test_sum_squared():
 X = np.random.RandomState(0).randint(0, 50, (3, 3))
 assert_equal(np.sum((X ** 2)), sum_squared(X))

def test_sum_squared ( ) : X = np . random . RandomState ( 0 ) . randint ( 0 , 50 , ( 3 , 3 ) ) assert_equal ( np . sum ( ( X ** 2 ) ) , sum_squared ( X ) )
test optimized sum of squares .