code: def test_astype_float(dtype, any_float_dtype):
      # Don't compare arrays (37974)
      ser = pd.Series(["1.1", pd.NA, "3.3"], dtype=dtype)
      result = ser.astype(any_float_dtype)
      expected = pd.Series([1.1, np.nan, 3.3], dtype=any_float_dtype)
      tm.assert_series_equal(result, expected)
  
imports: import operator
  import numpy
  import pytest
  from pandas.compat.pyarrow import pa_version_under12p0
  from pandas.core.dtypes.common import is_dtype_equal
  import pandas
  import pandas._testing
  from pandas.core.arrays.string_arrow import ArrowStringArray, ArrowStringArrayNumpySemantics
label_desc: Use image node_id 25 for calling a global function with example usage: test_astype_float(dtype, any_float_dtype) without return types