code: def test_text_filter_tokens_error_cases():
      sr = cudf.Series(["abc", "def", ""])
  
      with pytest.raises(
          TypeError,
          match="Type of replacement should be a string, found <class 'list'>",
      ):
          sr.str.filter_tokens(3, replacement=["a", "b"])
  
      with pytest.raises(
          TypeError,
          match="Type of delimiter should be a string, found <class 'list'>",
      ):
          sr.str.filter_tokens(3, delimiter=["a", "b"])
  
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 17 for calling a global function with example usage: test_text_filter_tokens_error_cases() without return types