class_docstr: Dictionary-based wrapper of :py:class:`monai.apps.pathology.transforms.array.GenerateInstanceBorder`.
  
  Args:
      mask_key: the input key where the watershed mask is stored. Defaults to `"mask"`.
      hover_map_key: the input key where hover map is stored. Defaults to `"hover_map"`.
      border_key: the output key where instance border map is written. Defaults to `"border"`.
      kernel_size: the size of the Sobel kernel. Defaults to 21.
      dtype: target data content type to convert, default is np.float32.
      allow_missing_keys: don't raise exception if key is missing.
  
  Raises:
      ValueError: when the `hover_map` has only one value.
      ValueError: when the `sobel gradient map` has only one value.
code: def __init__(
      self,
      mask_key: str = "mask",
      hover_map_key: str = "hover_map",
      border_key: str = "border",
      kernel_size: int = 21,
      dtype: DtypeLike = np.float32,
  ) -> None:
      self.mask_key = mask_key
      self.hover_map_key = hover_map_key
      self.border_key = border_key
      self.transform = GenerateInstanceBorder(
          kernel_size=kernel_size, 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 GenerateInstanceBorderd object from inherited base classes: Transform with example: obj = GenerateInstanceBorderd(mask_key, hover_map_key, border_key, kernel_size, dtype)