class_docstr: Test class for `WordInfoLost` metric.
docstr: Test functional implementation of metric.
docstr_tok: ["Test","functional","implementation","of","metric","."]
code: def test_wil_functional(self, preds, targets):
      """Test functional implementation of metric."""
      self.run_functional_metric_test(
          preds,
          targets,
          metric_functional=word_information_lost,
          reference_metric=_compute_wil_metric_jiwer,
      )
  
file_path: torchmetrics/tests/unittests/text/test_wil.py
imports: from typing import List, Union
  import pytest
  from jiwer import wil
  from torchmetrics.functional.text.wil import word_information_lost
  from torchmetrics.text.wil import WordInfoLost
  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 2 for calling the TestWordInfoLost obj's underlying member method code with example usage: obj.test_wil_functional(preds, targets) without return types