code: def test_value2(
      self, arguments, image, expected_shape, expected_value
  ):
      result = GenerateWatershedMask(**arguments)(image)
      self.assertEqual(result.shape, expected_shape)
  
      if isinstance(result, torch.Tensor):
          result = result.cpu().numpy()
      self.assertEqual(np.unique(result).tolist(), expected_value)
  
file_path: MONAI/tests/test_generate_watershed_mask.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.apps.pathology.transforms.post.array import GenerateWatershedMask
  from monai.utils import min_version, optional_import
  from tests.utils import TEST_NDARRAYS
label_desc: Use image node_id 2 for calling the TestGenerateWatershedMask obj's underlying member method code with example usage: obj.test_value2(arguments, image, expected_shape, expected_value) without return types