def simplefilter(f):
    return type(f.__name__, (FunctionFilter,), {
                'function':     f,
                '__module__':   getattr(f, '__module__'),
                '__doc__':      f.__doc__
            })
Decorator that converts a function into a filter::
dataset/ETHPy150Open darcyliu/storyboard/pygments/filter.py/simplefilter