code: def test_output(self, args, image, hover_map, expected_shape):
      mask = GenerateWatershedMask()(image)
      border_map = GenerateInstanceBorder(kernel_size=3)(
          mask, hover_map
      )
      distance_map = GenerateDistanceMap()(mask, border_map)
      markers = GenerateWatershedMarkers()(mask, border_map)
  
      calculate_instance_seg = Watershed(**args)
      output = calculate_instance_seg(distance_map, mask, markers)
  
      self.assertTupleEqual(output.shape, expected_shape)
  
file_path: MONAI/tests/test_watershed.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.apps.pathology.transforms.post.array import GenerateDistanceMap, GenerateInstanceBorder, GenerateWatershedMarkers, GenerateWatershedMask, Watershed
  from monai.utils import min_version, optional_import
  from tests.utils import TEST_NDARRAYS
label_desc: Use image node_id 1 for calling the TestWatershed obj's underlying member method code with example usage: obj.test_output(args, image, hover_map, expected_shape) without return types