code: def step_5(word, r1, r2):
      if word.endswith("l"):
          if len(word) - 1 >= r2 and word[-2] == "l":
              return word[:-1]
          return word
  
      if word.endswith("e"):
          if len(word) - 1 >= r2:
              return word[:-1]
          if len(word) - 1 >= r1 and not ends_with_short_syllable(
              word[:-1]
          ):
              return word[:-1]
  
      return word
  
imports: import re
label_desc: Use image node_id 18 for calling a global function with example usage: step_5(word, r1, r2) and returns: word, word, word, word, word