code: def test_sum(self):
      m = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
      tgt = [[6], [15], [24]]
      out = np.sum(m, axis=1, keepdims=True)
      assert_equal(tgt, out)
  
      am = np.asarray(m)
      assert_equal(np.sum(m), am.sum())
  
imports: from unittest import skipIf, SkipTest
  import numpy
  import pytest
  from pytest import raises
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, TEST_WITH_TORCHDYNAMO, TestCase, xpassIfTorchDynamo
label_desc: Use image node_id 1 for calling the TestSum obj's underlying member method code with example usage: obj.test_sum() without return types