code: def test_eed_empty_with_non_empty_hyp_class():
      """Test that eed returns 0 when no reference is provided."""
      eed_metric = ExtendedEditDistance()
      hyp = ["python"]
      ref = [[]]
      assert eed_metric(hyp, ref) == tensor(0.0)
  
file_path: torchmetrics/tests/unittests/text/test_eed.py
imports: from functools import partial
  import pytest
  from torch import Tensor, tensor
  from torchmetrics.functional.text.eed import extended_edit_distance
  from torchmetrics.text.eed import ExtendedEditDistance
  from unittests.text.helpers import TextTester
  from unittests.text.inputs import _inputs_single_reference, _inputs_single_sentence_multiple_references
label_desc: Use image node_id 5 for calling a global function with example usage: test_eed_empty_with_non_empty_hyp_class() without return types