human
Complete this python program:
def filter_params(target):
assistant
#Here is the Python program you requested.

    """Decorator which filters params to remove non-oauth_* parameters
    Assumes the decorated method takes a params dict or list of tuples as its
    first argument.
    """
    def wrapper(params, *args, **kwargs):
        params = filter_oauth_params(params)
        return target(params, *args, **kwargs)
    wrapper.__doc__ = target.__doc__
    return wrapper