code: def step_4(word, r2):
      for end in s4_delete_list:
          if word.endswith(end):
              if len(word) - len(end) >= r2:
                  return word[: -len(end)]
              return word
  
      if word.endswith("sion") or word.endswith("tion"):
          if len(word) - 3 >= r2:
              return word[:-3]
  
      return word
  
imports: import re
label_desc: Use image node_id 17 for calling a global function with example usage: step_4(word, r2) and returns: word, word, word, word