code: def ends_with_double_constant(string_ser):
      len_flag = len_gt_n(string_ser, 1)
  
      last_2_chars_equal = string_ser.str.get(-1) == string_ser.str.get(
          -2
      )
      is_last_consonant_bool_mask = is_consonant(string_ser, -1)
  
      return is_last_consonant_bool_mask & last_2_chars_equal & len_flag
  
imports: from .consonant_vowel_utils import is_vowel, is_consonant
  from .len_flags_utils import len_gt_n, len_eq_n
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 1 for calling a global function with example usage: ends_with_double_constant(string_ser) and returns: unknown