code: def test_is_vowel_consonant():
      strings = cudf.Series(
          [
              "tr",
              "ee",
              "tree",
              "y",
              "by",
              "oats",
              "ivy",
              "orrery",
              None,
              "",
          ]
      )
      expected = cudf.Series(
          [
              False,
              False,
              True,
              False,
              False,
              False,
              True,
              False,
              None,
              False,
          ]
      )
      actual = strings.str.is_vowel(2)
      assert type(expected) == type(actual)
      assert_eq(expected, actual)
  
      expected = cudf.Series(
          [
              True,
              False,
              True,
              False,
              False,
              False,
              True,
              True,
              None,
              False,
          ]
      )
      actual = strings.str.is_consonant(1)
      assert type(expected) == type(actual)
      assert_eq(expected, actual)
  
      indices = cudf.Series([2, 1, 0, 0, 1, 2, 0, 3, 0, 0])
      expected = cudf.Series(
          [
              False,
              True,
              False,
              False,
              True,
              False,
              True,
              True,
              None,
              False,
          ]
      )
      actual = strings.str.is_vowel(indices)
      assert type(expected) == type(actual)
      assert_eq(expected, actual)
  
      expected = cudf.Series(
          [
              False,
              False,
              True,
              True,
              False,
              True,
              False,
              False,
              None,
              False,
          ]
      )
      actual = strings.str.is_consonant(indices)
      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 21 for calling a global function with example usage: test_is_vowel_consonant() without return types