code: def test_edit_distance():
      sr = cudf.Series(["kitten", "saturday", "address", "book"])
      tg = cudf.Series(["sitting", "sunday", "addressee", "back"])
  
      expected = cudf.Series([3, 3, 2, 2], dtype=np.int32)
      actual = sr.str.edit_distance(tg)
      assert_eq(expected, actual)
  
      expected = cudf.Series([0, 7, 6, 6], dtype=np.int32)
      actual = sr.str.edit_distance("kitten")
      assert_eq(expected, actual)
  
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 18 for calling a global function with example usage: test_edit_distance() without return types