code: def from_set(cls, database, key, data, clear=False):
          
          s = cls(database, key)
          if clear:
              s.clear()
          s.add(*data)
          return s
docs: Create and populate a Set object from a data set.