def __reduce__(self):
items = [[k, self[k]] for k in self]<EOL>inst_dict = vars(self).copy()<EOL>for k in vars(OrderedDict()):<EOL><INDENT>inst_dict.pop(k, None)<EOL><DEDENT>if inst_dict:<EOL><INDENT>return self.__class__, (items,), inst_dict<EOL><DEDENT>return self.__class__, (items,)<EOL>
Return state information for pickling