code: def test_sum_where(self):
      # More extensive tests done in test_reduction_with_where.
      assert_equal(
          np.sum([[1.0, 2.0], [3.0, 4.0]], where=[True, False]), 4.0
      )
      assert_equal(
          np.sum(
              [[1.0, 2.0], [3.0, 4.0]],
              axis=0,
              initial=5.0,
              where=[True, False],
          ),
          [9.0, 5.0],
      )
  
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 9 for calling the TestSum obj's underlying member method code with example usage: obj.test_sum_where() without return types