code: def test_union_ea_dtypes(self, any_numeric_ea_and_arrow_dtype):
      # GH#51365
      idx = Index([1, 2, 3], dtype=any_numeric_ea_and_arrow_dtype)
      idx2 = Index([3, 4, 5], dtype=any_numeric_ea_and_arrow_dtype)
      result = idx.union(idx2)
      expected = Index(
          [1, 2, 3, 4, 5], dtype=any_numeric_ea_and_arrow_dtype
      )
      tm.assert_index_equal(result, expected)
  
imports: from datetime import datetime
  import operator
  import numpy
  import pytest
  from pandas._libs import lib
  from pandas.core.dtypes.cast import find_common_type
  from pandas import CategoricalDtype, CategoricalIndex, DatetimeTZDtype, Index, MultiIndex, PeriodDtype, RangeIndex, Series, Timestamp
  import pandas._testing
  from pandas.api.types import is_signed_integer_dtype, pandas_dtype
label_desc: Use image node_id 19 for calling the TestSetOpsUnsorted obj's underlying member method code with example usage: obj.test_union_ea_dtypes(any_numeric_ea_and_arrow_dtype) without return types