code: def test_to_numpy_na_value_with_nan():
      # array with both NaN and NA -> only fill NA with `na_value`
      arr = FloatingArray(
          np.array([0.0, np.nan, 0.0]), np.array([False, False, True])
      )
      result = arr.to_numpy(dtype="float64", na_value=-1)
      expected = np.array([0.0, np.nan, -1.0], dtype="float64")
      tm.assert_numpy_array_equal(result, expected)
  
file_path: pandas/pandas/tests/arrays/floating/test_to_numpy.py
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.core.arrays import FloatingArray
label_desc: Use image node_id 5 for calling a global function with example usage: test_to_numpy_na_value_with_nan() without return types