class_docstr: Dictionary-based wrapper of :py:class:`monai.apps.pathology.transforms.post.array.GenerateInstanceContour`.
  Generate contour for each instance in a 2D array. Use `GenerateSuccinctContour` to only include the pixels
  to which lines need to be drawn
  
  Args:
      keys: keys of the corresponding items to be transformed.
      contour_key_postfix: the output contour coordinates will be written to the value of
          `{key}_{contour_key_postfix}`.
      offset_key: keys of offset used in `GenerateInstanceContour`.
      min_num_points: assumed that the created contour does not form a contour if it does not contain more points
          than the specified value. Defaults to 3.
      level: optional. Value along which to find contours in the array. By default, the level is set
          to (max(image) + min(image)) / 2.
      allow_missing_keys: don't raise exception if key is missing.
code: def __init__(
      self,
      keys: KeysCollection,
      contour_key_postfix: str = "contour",
      offset_key: str | None = None,
      min_num_points: int = 3,
      level: float | None = None,
      allow_missing_keys: bool = False,
  ) -> None:
      super().__init__(keys, allow_missing_keys)
      self.converter = GenerateInstanceContour(
          min_num_points=min_num_points, contour_level=level
      )
      self.contour_key_postfix = contour_key_postfix
      self.offset_key = offset_key
  
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 GenerateInstanceContourd object from inherited base classes: MapTransform with example: obj = GenerateInstanceContourd(keys, contour_key_postfix, offset_key, min_num_points, level, allow_missing_keys)