from unittest.mock import AsyncMock async def my_async_function(arg1, arg2): ... mock_async_function = AsyncMock() await mock_async_function('foo', 'bar') mock_async_function.assert_awaited_with('foo', 'bar')In this example, we define an asynchronous function called `my_async_function` that takes two arguments. We then create a mock object for this function using `AsyncMock`. We call the mock function with two arguments (`'foo'` and `'bar'`) and then use `assert_awaited_with` to confirm that the function was called with those arguments. The `assert_awaited_with` method is included in the `unittest.mock` package.