code: def from_list(cls, database, key, data, clear=False):
          
          lst = cls(database, key)
          if clear:
              lst.clear()
          lst.extend(data)
          return lst
docs: Create and populate a List object from a data list.