class_docstr: Test class for character error rate.
class_docstr_tok: ["Test","class","for","character","error","rate","."]
docstr: Test differentiability of cer metric.
docstr_tok: ["Test","differentiability","of","cer","metric","."]
code: def test_cer_differentiability(self, preds, targets):
      """Test differentiability of cer metric."""
      self.run_differentiability_test(
          preds=preds,
          targets=targets,
          metric_module=CharErrorRate,
          metric_functional=char_error_rate,
      )
  
file_path: torchmetrics/tests/unittests/text/test_cer.py
imports: from typing import Callable, List, Union
  import pytest
  from torchmetrics.functional.text.cer import char_error_rate
  from torchmetrics.text.cer import CharErrorRate
  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 3 for calling the TestCharErrorRate obj's underlying member method code with example usage: obj.test_cer_differentiability(preds, targets) without return types