code: def map_id(self,id, prefix, closure_list):
          
          prefixc = prefix + ':'
          ids = [eid for eid in closure_list if eid.startswith(prefixc)]
          # TODO: add option to fail if no mapping, or if >1 mapping
          if len(ids) == 0:
              # default to input
              return id
          return ids[0]
docs: Map identifiers based on an equivalence closure list.