def validate_multiindex(self, obj):
levels = [l if l is not None else "<STR_LIT>".format(i)<EOL>for i, l in enumerate(obj.index.names)]<EOL>try:<EOL><INDENT>return obj.reset_index(), levels<EOL><DEDENT>except ValueError:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>
validate that we can store the multi-index; reset and return the
        new object