def del_instance(self, obj):
to_remove = set()<EOL>for wrkey, _obj in self.iter_instances():<EOL><INDENT>if obj is _obj:<EOL><INDENT>to_remove.add(wrkey)<EOL><DEDENT><DEDENT>for wrkey in to_remove:<EOL><INDENT>del self[wrkey]<EOL><DEDENT>
Remove any stored instance methods that belong to an object

        Args:
            obj: The instance object to remove