code: def test_to_numpy_na_raises(box, dtype):
      con = pd.Series if box else pd.array
      arr = con([0.0, 1.0, None], dtype="Float64")
      with pytest.raises(ValueError, match=dtype):
          arr.to_numpy(dtype=dtype)
  
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 7 for calling a global function with example usage: test_to_numpy_na_raises(box, dtype) without return types