def __setstate__(self, state):
if isinstance(state, dict):<EOL><INDENT>levels = state.get('<STR_LIT>')<EOL>codes = state.get('<STR_LIT>')<EOL>sortorder = state.get('<STR_LIT>')<EOL>names = state.get('<STR_LIT>')<EOL><DEDENT>elif isinstance(state, tuple):<EOL><INDENT>nd_state, own_state = state<EOL>levels, codes, sortorder, names = own_state<EOL><DEDENT>self._set_levels([Index(x) for x in levels], validate=False)<EOL>self._set_codes(codes)<EOL>self._set_names(names)<EOL>self.sortorder = sortorder<EOL>self._verify_integrity()<EOL>self._reset_identity()<EOL>
Necessary for making this object picklable