code: def test_to_numeric_error(data, errors):
      if errors == "raise":
          with pytest.raises(
              ValueError,
              match="Unable to convert some strings to numerics.",
          ):
              cudf.to_numeric(data, errors=errors)
      else:
          expect = pd.to_numeric(data, errors=errors)
          got = cudf.to_numeric(data, errors=errors)
  
          assert_eq(expect, got)
  
imports: import numpy
  import pandas
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_150
  from cudf.testing._utils import NUMERIC_TYPES, assert_eq
  from cudf.utils.dtypes import np_dtypes_to_pandas_dtypes
label_desc: Use image node_id 14 for calling a global function with example usage: test_to_numeric_error(data, errors) without return types