code: def test_to_numpy_dtype(box, dtype):
      con = pd.Series if box else pd.array
      arr = con([0.0, 1.0], dtype="Float64")
  
      result = arr.to_numpy(dtype=dtype)
      expected = np.array([0, 1], dtype=dtype)
      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 6 for calling a global function with example usage: test_to_numpy_dtype(box, dtype) without return types