code: def R(base):
      # R  Remove ending only after n or r
      c = base[-1]
      return c == "n" or c == "r"
  
imports: from collections import defaultdict
label_desc: Use image node_id 18 for calling a global function with example usage: R(base) and returns: unknown