class_docstr: Test class for `EditDistance` metric.
docstr: Test differentiability of metric.
docstr_tok: ["Test","differentiability","of","metric","."]
code: def test_edit_differentiability(self, preds, targets):
      """Test differentiability of metric."""
      self.run_differentiability_test(
          preds=preds,
          targets=targets,
          metric_module=EditDistance,
          metric_functional=edit_distance,
      )
  
file_path: torchmetrics/tests/unittests/text/test_edit.py
imports: from functools import partial
  import pytest
  from nltk.metrics.distance import edit_distance
  from torchmetrics.functional.text.edit import edit_distance
  from torchmetrics.text.edit import EditDistance
  from unittests.text.helpers import TextTester
  from unittests.text.inputs import _inputs_single_reference
label_desc: Use image node_id 3 for calling the TestEditDistance obj's underlying member method code with example usage: obj.test_edit_differentiability(preds, targets) without return types