def AsyncMock(*args, **kwargs):
m = mock.MagicMock(*args, **kwargs)<EOL>async def mock_coro(*args, **kwargs):<EOL><INDENT>return m(*args, **kwargs)<EOL><DEDENT>mock_coro.mock = m<EOL>return mock_coro<EOL>
Create an async function mock.