class_docstr: Optimal F1 Metric.
  
  Compute the optimal F1 score at the adaptive threshold, based on the F1 metric of the true labels and the
  predicted anomaly scores.
docstr: Reset the metric.
code: def reset(self) -> None:
      """Reset the metric."""
      self.precision_recall_curve.reset()
  
file_path: anomalib/src/anomalib/utils/metrics/optimal_f1.py
imports: import warnings
  import torch
  from torch import Tensor
  from torchmetrics import Metric, PrecisionRecallCurve
label_desc: Use image node_id 4 for calling the OptimalF1 obj's underlying member method code with example usage: obj.reset() without return types