create Stub With Signature
Create a function that takes arguments of the specified types, then turns around and calls the function invocation method with the given function and the passed arguments assembled into a tuple.
Return
An appropriate function with the given signature.
Parameters
function Type
The type to which the resultant function should conform.
function
The function which the new function should invoke when itself invoked.