code: def _wer_compute(errors: Tensor, total: Tensor) -> Tensor:
      """Compute the word error rate.
  
      Args:
          errors: Number of edit operations to get from the reference to the prediction, summed over all samples
          total: Number of words overall references
  
      Returns:
          Word error rate score
  
      """
      return errors / total
  
imports: from typing import List, Tuple, Union
  import torch
  from torch import Tensor, tensor
  from torchmetrics.functional.text.helper import _edit_distance
label_desc: Use image node_id 2 for calling a global function with example usage: _wer_compute(errors, total) and returns: unknown