code: def test_to_numeric_raises():
      with pytest.raises(ValueError, match="invalid error value"):
          to_numeric("10", errors="invalid")
      with pytest.raises(KeyError, match="``meta`` is not allowed"):
          to_numeric("10", meta=pd.Series([], dtype="float64"))
  
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 7 for calling a global function with example usage: test_to_numeric_raises() without return types