class_docstr: Dictionary-based wrapper of :py:class:`monai.apps.pathology.transforms.array.GenerateWatershedMarkers`.
  
  Args:
      mask_key: the input key where the watershed mask is stored. Defaults to `"mask"`.
      border_key: the input key where instance border map is stored. Defaults to `"border"`.
      markers_key: the output key where markers is written. Defaults to `"markers"`.
      threshold: threshold the float values of instance border map to int 0 or 1 with specified threshold.
          It turns uncertain area to 1 and other area to 0. Defaults to 0.4.
      radius: the radius of the disk-shaped footprint used in `opening`. Defaults to 2.
      min_object_size: objects smaller than this size are removed. Defaults to 10.
      postprocess_fn: execute additional post transformation on marker. Defaults to None.
      dtype: target data content type to convert, default is np.uint8.
      allow_missing_keys: don't raise exception if key is missing.
code: def __init__(
      self,
      mask_key: str = "mask",
      border_key: str = "border",
      markers_key: str = "markers",
      threshold: float = 0.4,
      radius: int = 2,
      min_object_size: int = 10,
      postprocess_fn: Callable | None = None,
      dtype: DtypeLike = np.uint8,
  ) -> None:
      self.mask_key = mask_key
      self.border_key = border_key
      self.markers_key = markers_key
      self.transform = GenerateWatershedMarkers(
          threshold=threshold,
          radius=radius,
          min_object_size=min_object_size,
          postprocess_fn=postprocess_fn,
          dtype=dtype,
      )
  
imports: from __future__ import annotations
  from collections.abc import Callable, Hashable, Mapping
  import numpy
  import torch
  from monai.apps.pathology.transforms.post.array import GenerateDistanceMap, GenerateInstanceBorder, GenerateInstanceCentroid, GenerateInstanceContour, GenerateInstanceType, GenerateSuccinctContour, GenerateWatershedMarkers, GenerateWatershedMask, HoVerNetInstanceMapPostProcessing, HoVerNetNuclearTypePostProcessing, Watershed
  from monai.config.type_definitions import DtypeLike, KeysCollection, NdarrayOrTensor
  from monai.transforms.transform import MapTransform, Transform
  from monai.utils import optional_import
  from monai.utils.enums import HoVerNetBranch
label_desc: Use image node_id 1 to create a new GenerateWatershedMarkersd object from inherited base classes: Transform with example: obj = GenerateWatershedMarkersd(mask_key, border_key, markers_key, threshold, radius, min_object_size, postprocess_fn, dtype)