docs: def remove_duplicates(lst):
      """
      Emulate what a Python ``set()`` does, but keeping the element's order.
      """
      dset = set()
      return [l for l in lst if l not in dset and not dset.add(l)]