code: def test_to_numeric_on_dask_array():
      arg = from_array(["1.0", "2", "-3", "5.1"])
      expected = np.array([1.0, 2.0, -3.0, 5.1])
      output = to_numeric(arg)
      expected_dtype = "int64"
      assert output.dtype == expected_dtype
      assert isinstance(output, Array)
      assert list(output.compute()) == list(expected)
  
file_path: dask/dask/dataframe/tests/test_numeric.py
imports: from __future__ import annotations
  import numpy
  import pandas
  import pytest
  from dask.array import Array, from_array
  from dask.dataframe import Series, _dask_expr_enabled, from_pandas, to_numeric
  from dask.dataframe.utils import pyarrow_strings_enabled
  from dask.delayed import Delayed
label_desc: Use image node_id 2 for calling a global function with example usage: test_to_numeric_on_dask_array() without return types