code: def test_output(self, args, image, hover_map, expected_shape):
      data = {"output": image, "hover_map": hover_map}
  
      trans = Compose(
          [
              GenerateWatershedMaskd(keys="output"),
              GenerateInstanceBorderd(
                  mask_key="mask",
                  hover_map_key="hover_map",
                  kernel_size=3,
              ),
              GenerateDistanceMapd(
                  mask_key="mask", border_key="border"
              ),
              GenerateWatershedMarkersd(
                  mask_key="mask", border_key="border"
              ),
              Watershedd(**args),
          ]
      )
  
      output = trans(data)
      self.assertTupleEqual(output["dist_map"].shape, expected_shape)
  
file_path: MONAI/tests/test_watershedd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.apps.pathology.transforms.post.dictionary import GenerateDistanceMapd, GenerateInstanceBorderd, GenerateWatershedMarkersd, GenerateWatershedMaskd, Watershedd
  from monai.transforms import Compose
  from monai.utils import min_version, optional_import
  from tests.utils import TEST_NDARRAYS
label_desc: Use image node_id 1 for calling the TestWatershedd obj's underlying member method code with example usage: obj.test_output(args, image, hover_map, expected_shape) without return types