class_docstr: Mark an instantaneous event that occurred at some point.
  
  Args:
      msg: ASCII message to associate with range
class_docstr_tok: ["Mark","an","instantaneous","event","that","occurred","at","some","point",".","Args",":","msg",":","ASCII","message","to","associate","with","range"]
code: def __init__(
      self, event: str | Events, msg: str | None = None
  ) -> None:
      self.event = (
          Events[event.upper()] if isinstance(event, str) else event
      )
      if msg is None:
          msg = self.event.name
      self.msg = msg
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from monai.config import IgniteInfo
  from monai.utils import ensure_tuple, min_version, optional_import
label_desc: Use image node_id 1 to create a new MarkHandler object  with example: obj = MarkHandler(event, msg)