code: def _word_info_lost_compute(
      errors: Tensor, target_total: Tensor, preds_total: Tensor
  ) -> Tensor:
      """Compute the Word Information Lost.
  
      Args:
          errors: Number of edit operations to get from the reference to the prediction, summed over all samples
          target_total: Number of words overall references
          preds_total: Number of words overall prediction
  
      Returns:
          Word Information Lost score
  
      """
      return 1 - ((errors / target_total) * (errors / preds_total))
  
imports: from typing import List, Tuple, Union
  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: _word_info_lost_compute(errors, target_total, preds_total) and returns: unknown