async def METHOD_NAME():
    async with database:
        async with database.transaction(force_rollback=True):
            c1 = Company(name="Banzai", founded=1988)
            c2 = Company(name="Yuhu", founded=1989)
            await Company.objects.bulk_create([c1, c2])
            assert c1.saved
            assert c2.saved
            c1, c2 = await Company.objects.all()
            c1.name = "Banzai2"
            c2.name = "Yuhu2"
            assert not c1.saved
            assert not c2.saved
            await Company.objects.bulk_update([c1, c2])
            assert c1.saved
            assert c2.saved
            c3 = Company(name="Cobra", founded=2088)
            assert not c3.saved
            with pytest.raises(ModelPersistenceError):
                await c3.update()
            await c3.upsert()
            assert c3.saved
            c3.name = "Python"
            assert not c3.saved
            await c3.upsert()
            assert c3.saved
            assert c3.name == "Python"
            await c3.upsert(founded=2077)
            assert c3.saved
            assert c3.founded == 2077