code: def test_symmetric_difference_keeping_ea_dtype(
      any_numeric_ea_dtype, val
  ):
      # GH#48607
      midx = MultiIndex.from_arrays(
          [Series([1, 2], dtype=any_numeric_ea_dtype), [2, 1]],
          names=["a", None],
      )
      midx2 = MultiIndex.from_arrays(
          [Series([1, 2, val], dtype=any_numeric_ea_dtype), [1, 1, 3]]
      )
      result = midx.symmetric_difference(midx2)
      expected = MultiIndex.from_arrays(
          [Series([1, 1, val], dtype=any_numeric_ea_dtype), [1, 2, 3]]
      )
      tm.assert_index_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import CategoricalIndex, DataFrame, Index, IntervalIndex, MultiIndex, Series
  import pandas._testing
  from pandas.api.types import is_float_dtype, is_unsigned_integer_dtype
label_desc: Use image node_id 29 for calling a global function with example usage: test_symmetric_difference_keeping_ea_dtype(any_numeric_ea_dtype, val) without return types