code: def __init__(
      self,
      beta: float = 1.0,
      include_background: bool = True,
      reduction: MetricReduction | str = MetricReduction.MEAN,
      get_not_nans: bool = False,
  ) -> None:
      super().__init__()
      self.beta = beta
      self.include_background = include_background
      self.reduction = reduction
      self.get_not_nans = get_not_nans
  
file_path: MONAI/monai/metrics/f_beta_score.py
imports: from __future__ import annotations
  from collections.abc import Sequence
  import torch
  from monai.metrics.utils import do_metric_reduction, ignore_background
  from monai.utils import MetricReduction
  from .metric import CumulativeIterationMetric
label_desc: Use image node_id 1 to create a new FBetaScore object from inherited base classes: CumulativeIterationMetric with example: obj = FBetaScore(beta, include_background, reduction, get_not_nans)