def __init__(self, name, module, func_obj, cls=None, method=False):
super(Function, self).__init__(name, module, inspect.getdoc(func_obj))<EOL>self.func = func_obj<EOL>"""<STR_LIT>"""<EOL>self.cls = cls<EOL>"""<STR_LIT>"""<EOL>self.method = method<EOL>"""<STR_LIT>"""<EOL>
Same as `pydoc.Doc.__init__`, except `func_obj` must be a
Python function object. The docstring is gathered automatically.

`cls` should be set when this is a method or a static function
beloing to a class. `cls` should be a `pydoc.Class` object.

`method` should be `True` when the function is a method. In
all other cases, it should be `False`.