def mock_method_async(name, data):
    '\n    Returns an async function that mocks an original async function\n    '

    async def mockf(*args, **kwargs):
        return mock_res(name, data, args, kwargs)
    return mockf
Returns an async function that mocks an original async function
def mock_method_async(name, data):
    '\n    \n    '

    async def mockf(*args, **kwargs):
        return mock_res(name, data, args, kwargs)
    return mockf