def add_method(self, m, **kwargs):
if isinstance(m, types.FunctionType):<EOL><INDENT>self['<STR_LIT>', id(m)] = m<EOL><DEDENT>else:<EOL><INDENT>f, obj = get_method_vars(m)<EOL>wrkey = (f, id(obj))<EOL>self[wrkey] = obj<EOL><DEDENT>
Add an instance method or function

        Args:
            m: The instance method or function to store