code: def test_pow_scalar():
      a = pd.array([-1, 0, 1, None, 2], dtype="Int64")
      result = a**0
      expected = pd.array([1, 1, 1, 1, 1], dtype="Int64")
      tm.assert_extension_array_equal(result, expected)
  
      result = a**1
      expected = pd.array([-1, 0, 1, None, 2], dtype="Int64")
      tm.assert_extension_array_equal(result, expected)
  
      result = a**pd.NA
      expected = pd.array([None, None, 1, None, None], dtype="Int64")
      tm.assert_extension_array_equal(result, expected)
  
      result = a**np.nan
      expected = FloatingArray(
          np.array(
              [np.nan, np.nan, 1, np.nan, np.nan], dtype="float64"
          ),
          np.array([False, False, False, True, False]),
      )
      tm.assert_extension_array_equal(result, expected)
  
      # reversed
      a = a[1:]  # Can't raise integers to negative powers.
  
      result = 0**a
      expected = pd.array([1, 0, None, 0], dtype="Int64")
      tm.assert_extension_array_equal(result, expected)
  
      result = 1**a
      expected = pd.array([1, 1, 1, 1], dtype="Int64")
      tm.assert_extension_array_equal(result, expected)
  
      result = pd.NA**a
      expected = pd.array([1, None, None, None], dtype="Int64")
      tm.assert_extension_array_equal(result, expected)
  
      result = np.nan**a
      expected = FloatingArray(
          np.array([1, np.nan, np.nan, np.nan], dtype="float64"),
          np.array([False, False, True, False]),
      )
      tm.assert_extension_array_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 8 for calling a global function with example usage: test_pow_scalar() without return types