def METHOD_NAME(self):
    events = []
    class Test(unittest.IsolatedAsyncioTestCase):
        async def test_func(self):
            self.addAsyncCleanup(self.on_sync_cleanup, 1)
            self.addAsyncCleanup(self.on_async_cleanup, 2)
            self.addAsyncCleanup(self.on_sync_cleanup, 3)
            self.addAsyncCleanup(self.on_async_cleanup, 4)
        async def on_sync_cleanup(self, val):
            events.append(f'sync_cleanup {val}')
        async def on_async_cleanup(self, val):
            events.append(f'async_cleanup {val}')
    test = Test("test_func")
    test.run()
    self.assertEqual(events, ['async_cleanup 4',
                              'sync_cleanup 3',
                              'async_cleanup 2',
                              'sync_cleanup 1'])