code: def test_downcast_booleans():
      # see gh-16875: coercing of booleans.
      ser = Series([True, True, False])
      result = maybe_downcast_to_dtype(ser, np.dtype(np.float64))
  
      expected = ser.values
      tm.assert_numpy_array_equal(result, expected)
  
file_path: pandas/pandas/tests/dtypes/cast/test_downcast.py
imports: import decimal
  import numpy
  import pytest
  from pandas.core.dtypes.cast import maybe_downcast_to_dtype
  from pandas import Series, Timedelta
  import pandas._testing
label_desc: Use image node_id 2 for calling a global function with example usage: test_downcast_booleans() without return types