code: def test_to_numpy(box):
      con = pd.Series if box else pd.array
  
      # default (with or without missing values) -> object dtype
      arr = con([0.1, 0.2, 0.3], dtype="Float64")
      result = arr.to_numpy()
      expected = np.array([0.1, 0.2, 0.3], dtype="float64")
      tm.assert_numpy_array_equal(result, expected)
  
      arr = con([0.1, 0.2, None], dtype="Float64")
      result = arr.to_numpy()
      expected = np.array([0.1, 0.2, np.nan], 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 1 for calling a global function with example usage: test_to_numpy(box) without return types