class_docstr: Holds a collection of training or validation metrics.
class_docstr_tok: ["Holds","a","collection","of","training","or","validation","metrics","."]
docstr: Format the value of metric ``name`` to print to stdout or stderr.
docstr_tok: ["Format","the","value","of","metric","``","name","``","to","print","to","stdout","or","stderr","."]
code: def format_metric_value(self, name: str, value: Any) -> Optional[str]:
      """Format the value of metric ``name`` to print to stdout or stderr."""
      return None
  
file_path: fairseq2/src/fairseq2/metrics.py
imports: from typing import Any, Dict, Mapping, Optional
  from torcheval.metrics import Metric
  from torcheval.metrics.toolkit import sync_and_compute_collection
  from fairseq2.gang import Gang
label_desc: Use image node_id 11 for calling the MetricBag obj's underlying member method code with example usage: obj.format_metric_value(name, value) and returns: None