@staticmethod
def _call_function_with_args_kwargs(supplied_function, arg_list, stop_arg_index
    ):
    """Call supplied function with both *args and **kwargs."""
    return supplied_function(*arg_list[:stop_arg_index], *arg_list[-2], **
        arg_list[-1])
