def create_model_offline(schema, collection_factory, class_name):
model_class = type(class_name,<EOL>(Model,),<EOL>dict(schema=schema, _collection_factory=staticmethod(collection_factory)))<EOL>model_class.__module__ = _module_name_from_previous_frame(<NUM_LIT:1>)<EOL>return model_class<EOL>
Entry point for creating a new Mongothon model without instantiating
a database connection. The collection is instead provided through a closure
that is resolved upon the model's first database access.