code: def __init__(
      self,
      metric_fn: CumulativeIterationMetric | None = None,
      loss_fn: _Loss | None = None,
      output_transform: Callable = lambda x: x,
      save_details: bool = True,
      reduction: MetricReduction | str = MetricReduction.MEAN,
      get_not_nans: bool = False,
  ) -> None:
      super().__init__(
          metric_fn=metric_fn,
          loss_fn=loss_fn,
          output_transform=output_transform,
          save_details=save_details,
          reduction=reduction,
          get_not_nans=get_not_nans,
      )
  
file_path: MONAI/monai/handlers/ignite_metric.py
imports: from __future__ import annotations
  import warnings
  from collections.abc import Callable, Sequence
  from typing import TYPE_CHECKING, Any, cast
  import torch
  from torch.nn.modules.loss import _Loss
  from monai.config import IgniteInfo
  from monai.metrics import CumulativeIterationMetric, LossMetric
  from monai.utils import MetricReduction, deprecated, min_version, optional_import
label_desc: Use image node_id 1 to create a new IgniteMetric object from inherited base classes: IgniteMetricHandler with example: obj = IgniteMetric(metric_fn, loss_fn, output_transform, save_details, reduction, get_not_nans)