def __init__(self, func=None, tp='<STR_LIT>'):
if func is None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self.func = func<EOL>self.tp = tp<EOL>
Input:
--------------
func: function to add
tp: string
Type of the method: normal, staticmethod, classmethod