code: def test_astype_to_floating_array():
      # astype to FloatingArray
      arr = pd.array([0.0, 1.0, None], dtype="Float64")
  
      result = arr.astype("Float64")
      tm.assert_extension_array_equal(result, arr)
      result = arr.astype(pd.Float64Dtype())
      tm.assert_extension_array_equal(result, arr)
      result = arr.astype("Float32")
      expected = pd.array([0.0, 1.0, None], dtype="Float32")
      tm.assert_extension_array_equal(result, expected)
  
file_path: pandas/pandas/tests/arrays/floating/test_astype.py
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
label_desc: Use image node_id 2 for calling a global function with example usage: test_astype_to_floating_array() without return types