code: def test_token_count(delimiter, expected_token_counts):
      strings = cudf.Series(
          [
              "the quick brown fox jumped over the lazy brown dog",
              "the sable siamésé cat jumped under the brown sofa",
              None,
              "",
              "test_str\x01test_str\x02test_str\x03test_str\x04test_str\x05",
          ]
      )
  
      expected = cudf.Series(expected_token_counts)
  
      actual = strings.str.token_count(delimiter)
  
      assert type(expected) == type(actual)
      assert_eq(expected, actual, check_dtype=False)
  
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 4 for calling a global function with example usage: test_token_count(delimiter, expected_token_counts) without return types