code: def test_assert_index_equal_different_names_check_order_false():
      # GH#47328
      idx1 = Index([1, 3], name="a")
      idx2 = Index([3, 1], name="b")
      with pytest.raises(AssertionError, match='"names" are different'):
          tm.assert_index_equal(
              idx1, idx2, check_order=False, check_names=True
          )
  
imports: import numpy
  import pytest
  from pandas import NA, Categorical, CategoricalIndex, Index, MultiIndex, NaT, RangeIndex
  import pandas._testing
label_desc: Use image node_id 16 for calling a global function with example usage: test_assert_index_equal_different_names_check_order_false() without return types