def test_2(self):
     a = [
         [0,0,0],
         [0,1,0],
         [0,0,0]
     ]
     self.assertEqual(up2(a),2)
 def test_5(self):
     a =[[1,0],[0,0],[0,0],[0,0],[0,0],[0,0]]
     self.assertEqual(up2(a),0)
 def test_4(self):
     a = [[0,0],[0,0],[0,0],[1,0],[0,0]]
     self.assertEqual(up2(a),3)
 def test_3(self):
     a = [
      [0]
     ]
     self.assertEqual(up2(a),1)