def _check_not_equal_with_index(obj):
if not isinstance(obj, Index):<EOL><INDENT>a = hash_pandas_object(obj, index=True)<EOL>b = hash_pandas_object(obj, index=False)<EOL>if len(obj):<EOL><INDENT>assert not (a == b).all()<EOL><DEDENT><DEDENT>
Check the hash of an object with and without its index is not the same.

Parameters
----------
obj : object
    The object to hash.