async def create_object(model, **data):
<EOL>warnings.warn("<STR_LIT>"<EOL>"<STR_LIT>",<EOL>DeprecationWarning)<EOL>obj = model(**data)<EOL>pk = await insert(model.insert(**dict(obj.__data__)))<EOL>if obj._pk is None:<EOL><INDENT>obj._pk = pk<EOL><DEDENT>return obj<EOL>
Create object asynchronously.

    :param model: mode class
    :param data: data for initializing object
    :return: new object saved to database