code: def test_text_replace_tokens():
      sr = cudf.Series(["this is me", "theme music", ""])
      targets = cudf.Series(["is", "me"])
  
      expected = cudf.Series(["this _ _", "theme music", ""])
      actual = sr.str.replace_tokens(targets, "_")
  
      assert_eq(expected, actual)
  
      replacements = cudf.Series(["IS", "ME"])
      expected = cudf.Series(["this IS ME", "theme music", ""])
      actual = sr.str.replace_tokens(targets, replacements)
  
      assert_eq(expected, actual)
  
      sr = cudf.Series(
          [
              "this is a small text ☕",
              "this \t\t is ; ; - + a looooooooooonnnnnnnggggggg text \n\t",
              "emptyme",
          ],
      )
      targets = cudf.Series(
          ["a", "☕", "\t", "looooooooooonnnnnnnggggggg", "emptyme"]
      )
      replacements = cudf.Series(["the", "🚒", "🚒🚒🚒🚒", "🔥🔥", ""])
  
      expected = cudf.Series(
          [
              "this is the small text 🚒",
              "this \t\t is ; ; - + the 🔥🔥 text \n\t",
              "",
          ]
      )
      actual = sr.str.replace_tokens(targets, replacements)
  
      assert_eq(expected, actual)
  
      sr = cudf.Series(
          ["All-we-need;is;🔥", "\tall-we-need0is;🌊", "all;we:need+is;🌬"]
      )
      targets = cudf.Series(["🌬", "🔥", "🌊"])
      replacements = "🚰"
  
      expected = cudf.Series(
          ["All-we-need;is;🚰", "\tall-we-need0is;🚰", "all;we:need+is;🚰"]
      )
      actual = sr.str.replace_tokens(
          targets, replacements, delimiter=";"
      )
  
      assert_eq(expected, actual)
      assert_eq(sr, sr.str.replace_tokens(targets, replacements))
      assert_eq(sr, sr.str.replace_tokens([""], [""]))
  
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 14 for calling a global function with example usage: test_text_replace_tokens() without return types