code: def test_cross_type_arithmetic():
      df = pd.DataFrame(
          {
              "A": pd.Series([1, 2, np.nan], dtype="Int64"),
              "B": pd.Series([1, np.nan, 3], dtype="UInt8"),
              "C": [1, 2, 3],
          }
      )
  
      result = df.A + df.C
      expected = pd.Series([2, 4, np.nan], dtype="Int64")
      tm.assert_series_equal(result, expected)
  
      result = (df.A + df.C) * 3 == 12
      expected = pd.Series([False, True, None], dtype="boolean")
      tm.assert_series_equal(result, expected)
  
      result = df.A + df.B
      expected = pd.Series([2, np.nan, np.nan], dtype="Int64")
      tm.assert_series_equal(result, expected)
  
imports: import operator
  import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.core import ops
  from pandas.core.arrays import FloatingArray
label_desc: Use image node_id 15 for calling a global function with example usage: test_cross_type_arithmetic() without return types