def resolve_args_and_kwargs(context, args, kwargs):
    """
    Resolves arguments and keyword arguments parsed by
    ``parse_args_and_kwargs`` using the passed context instance

    See ``parse_args_and_kwargs`` for usage instructions.
    """
    return (
        [v.resolve(context) for v in args],
        {k: v.resolve(context) for k, v in kwargs.items()},
    )