code: def is_consonant(str_ser, i):
      """Returns True if word[i] is a consonant, False otherwise
  
      A consonant is defined in the paper as follows:
          A consonant in a word is a letter other than A, E, I, O or
          U, and other than Y preceded by a consonant. (The fact that
          the term `consonant' is defined to some extent in terms of
          itself does not make it ambiguous.) So in TOY the consonants
          are T and Y, and in SYZYGY they are S, Z and G. If a letter
          is not a consonant it is a vowel.
      """
      return str_ser.str.is_consonant(i)
  
label_desc: Use image node_id 1 for calling a global function with example usage: is_consonant(str_ser, i) and returns: str_ser