def create_async_api_call_func(api, verb):
<EOL>def api_call_func(self, **kwargs):<EOL><INDENT>def _async_call_handler():<EOL><INDENT>api_method = getattr(self, api_method_name(verb, api))<EOL>return api_method(**kwargs)<EOL><DEDENT>return self._executor.submit(_async_call_handler)<EOL><DEDENT>method_name = async_api_method_name(verb, api)<EOL>api_call_func.__name__ = method_name<EOL>api_call_func.__doc__ = "<STR_LIT>".format(<EOL>method_name, '<STR_LIT>'.join(api.request_classes[verb]().keys()))<EOL>return api_call_func<EOL>
From an api definition object create the related api call method
that will validate the arguments for the api call and then
dynamically dispatch the request to the appropriate requests module
convenience method for the specific HTTP verb .