code: def test_hash_character_ngrams():
      strings = cudf.Series(["abcdefg", "stuvwxyz"])
      expected = cudf.Series(
          [
              cudf.Series(
                  [3902511862, 570445242, 4202475763], dtype=np.uint32
              ),
              cudf.Series(
                  [556054766, 3166857694, 3760633458, 192452857],
                  dtype=np.uint32,
              ),
          ]
      )
      actual = strings.str.hash_character_ngrams(5, True)
      assert type(expected) == type(actual)
      assert_eq(expected, actual)
  
      actual = strings.str.hash_character_ngrams(5)
      expected = expected.explode()
      assert type(expected) == type(actual)
      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 10 for calling a global function with example usage: test_hash_character_ngrams() without return types