code: def unique_inverse(item_list):
      
      import utool as ut
      unique_items = ut.unique(item_list)
      inverse = list_alignment(unique_items, item_list)
      return unique_items, inverse
docs: Like np.unique(item_list, return_inverse=True)