code: def test_series_equal_categorical_values_mismatch(
      rtol, using_infer_string
  ):
      if using_infer_string:
          msg = """Series are different
  
  Series values are different \\(66\\.66667 %\\)
  \\[index\\]: \\[0, 1, 2\\]
  \\[left\\]:  \\['a', 'b', 'c'\\]
  Categories \\(3, string\\): \\[a, b, c\\]
  \\[right\\]: \\['a', 'c', 'b'\\]
  Categories \\(3, string\\): \\[a, b, c\\]"""
      else:
          msg = """Series are different
  
  Series values are different \\(66\\.66667 %\\)
  \\[index\\]: \\[0, 1, 2\\]
  \\[left\\]:  \\['a', 'b', 'c'\\]
  Categories \\(3, object\\): \\['a', 'b', 'c'\\]
  \\[right\\]: \\['a', 'c', 'b'\\]
  Categories \\(3, object\\): \\['a', 'b', 'c'\\]"""
  
      s1 = Series(Categorical(["a", "b", "c"]))
      s2 = Series(Categorical(["a", "c", "b"]))
  
      with pytest.raises(AssertionError, match=msg):
          tm.assert_series_equal(s1, s2, rtol=rtol)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import Categorical, DataFrame, Series
  import pandas._testing
label_desc: Use image node_id 14 for calling a global function with example usage: test_series_equal_categorical_values_mismatch(rtol, using_infer_string) without return types