code: def test_integer_array_from_boolean():
      # GH31104
      expected = pd.array(np.array([True, False]), dtype="Int64")
      result = pd.array(
          np.array([True, False], dtype=object), dtype="Int64"
      )
      tm.assert_extension_array_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.api.types import is_integer
  from pandas.core.arrays import IntegerArray
  from pandas.core.arrays.integer import Int8Dtype, Int32Dtype, Int64Dtype
label_desc: Use image node_id 15 for calling a global function with example usage: test_integer_array_from_boolean() without return types