docs: def simple_lmdb_settings(path, map_size=1e9, user_supplied_id=False):
      """
      Creates a decorator that can be used to configure sane default LMDB
      persistence settings for a model
  
      Args:
          path (str): The path where the LMDB database files will be created
          map_size (int): The amount of space to allot for the database
      """
  
      def decorator(cls):
          provider = \
              ff.UserSpecifiedIdProvider(key='_id') \
              if user_supplied_id else ff.UuidProvider()
  
          class Settings(ff.PersistenceSettings):
              id_provider = provider
              key_builder = ff.StringDelimitedKeyBuilder('|')
              database = ff.LmdbDatabase(
                      path, key_builder=key_builder, map_size=map_size)
  
          class Model(cls, Settings):
              pass
  
          Model.__name__ = cls.__name__
          Model.__module__ = cls.__module__
          return Model
  
      return decorator