code: def _squad_compute(
      f1: Tensor, exact_match: Tensor, total: Tensor
  ) -> Dict[str, Tensor]:
      """Aggregate the F1 Score and Exact match for the batch.
  
      Return:
          Dictionary containing the F1 score, Exact match score for the batch.
  
      """
      exact_match = 100.0 * exact_match / total
      f1 = 100.0 * f1 / total
      return {"exact_match": exact_match, "f1": f1}
  
file_path: torchmetrics/src/torchmetrics/functional/text/squad.py
imports: import re
  import string
  from collections import Counter
  from typing import Any, Callable, Dict, List, Tuple, Union
  from torch import Tensor, tensor
  from torchmetrics.utilities import rank_zero_warn
label_desc: Use image node_id 8 for calling a global function with example usage: _squad_compute(f1, exact_match, total) and returns: dict