def _apply_args_and_kwargs(function, args, kwargs):
    """Apply a tuple of args and a dictionary of kwargs to a function

    Parameters
    ----------
    function: func
        function you wish to use
    args: tuple
        all args passed to function
    kwargs: dict
        all kwargs passed to function
    """
    return function(*args, **kwargs)