code: def S(base):
      # S  Remove ending only after dr or t, unless t follows t
      l2 = base[-2]
      return l2 == "rd" or (base[-1] == "t" and l2 != "tt")
  
imports: from collections import defaultdict
label_desc: Use image node_id 19 for calling a global function with example usage: S(base) and returns: unknown