code: def _compute_wip_metric_jiwer(
      preds: Union[str, List[str]], target: Union[str, List[str]]
  ):
      return wip(target, preds)
  
file_path: torchmetrics/tests/unittests/text/test_wip.py
imports: from typing import List, Union
  import pytest
  from jiwer import wip
  from torchmetrics.functional.text.wip import word_information_preserved
  from torchmetrics.text.wip import WordInfoPreserved
  from torchmetrics.utilities.imports import _JIWER_AVAILABLE
  from unittests.text.helpers import TextTester
  from unittests.text.inputs import _inputs_error_rate_batch_size_1, _inputs_error_rate_batch_size_2
label_desc: Use image node_id 1 for calling a global function with example usage: _compute_wip_metric_jiwer(preds, target) and returns: wip