def function(fname):
def _f(func):<EOL><INDENT>class WrapFunction(Function):<EOL><INDENT>name = fname<EOL>def __call__(self, *args, **kwargs):<EOL><INDENT>return func(*args, **kwargs)<EOL><DEDENT><DEDENT>return WrapFunction<EOL><DEDENT>return _f<EOL>
Make a function to Function class