code: def get_unique_id(element):
      
      this_id = make_id(element)
      dup = True
      while dup:
          if this_id not in ids:
              dup = False
              ids.append(this_id)
          else:
              this_id = make_id(element)
      return ids[-1]
docs: Returns a unique id for a given element