code: def test_edit_distance_matrix():
      # normal
      sr = cudf.Series(
          ["rounded", "bounded", "bounce", "trounce", "ounce"]
      )
  
      expected = cudf.Series(
          [
              [0, 1, 3, 3, 3],
              [1, 0, 2, 4, 3],
              [3, 2, 0, 2, 1],
              [3, 4, 2, 0, 2],
              [3, 3, 1, 2, 0],
          ]
      )
      got = sr.str.edit_distance_matrix()
  
      assert_eq(expected, got, check_dtype=False)
  
      # 1-row series
      sr2 = cudf.Series(["x"])
      with pytest.raises(ValueError, match="Require size >= 2"):
          sr2.str.edit_distance_matrix()
  
      # null rows
      sr3 = cudf.Series(["rounded", None, "bounce", "trounce", "ounce"])
      with pytest.raises(ValueError, match="Cannot compute"):
          sr3.str.edit_distance_matrix()
  
imports: import random
  import string
  import numpy
  import pytest
  import cudf
  from cudf.core.byte_pair_encoding import BytePairEncoder
  from cudf.core.tokenize_vocabulary import TokenizeVocabulary
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 19 for calling a global function with example usage: test_edit_distance_matrix() without return types