code: def T(base):
      # T  Remove ending only after s or t, unless t follows o
      c1, c2 = base[-2:]
      return c2 == "s" or (c2 == "t" and c1 != "o")
  
imports: from collections import defaultdict
label_desc: Use image node_id 20 for calling a global function with example usage: T(base) and returns: unknown