code: def test_concat_mismatched_categoricals_with_empty():
      # concat_compat behavior on series._values should match pd.concat on series
      ser1 = Series(["a", "b", "c"], dtype="category")
      ser2 = Series([], dtype="category")
  
      msg = "The behavior of array concatenation with empty entries is deprecated"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          result = _concat.concat_compat([ser1._values, ser2._values])
      with tm.assert_produces_warning(FutureWarning, match=msg):
          expected = pd.concat([ser1, ser2])._values
      tm.assert_categorical_equal(result, expected)
  
file_path: pandas/pandas/tests/dtypes/test_concat.py
imports: import pytest
  import pandas.core.dtypes.concat
  import pandas
  from pandas import Series
  import pandas._testing
label_desc: Use image node_id 1 for calling a global function with example usage: test_concat_mismatched_categoricals_with_empty() without return types