code: def test_ignore_downcast_invalid_data():
      # If we can't successfully cast the given
      # data to a numeric dtype, do not bother
      # with the downcast parameter.
      data = ["foo", 2, 3]
      expected = np.array(data, dtype=object)
  
      msg = "errors='ignore' is deprecated"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          res = to_numeric(data, errors="ignore", downcast="unsigned")
      tm.assert_numpy_array_equal(res, expected)
  
imports: import decimal
  import numpy
  from numpy import iinfo
  import pytest
  import pandas.util._test_decorators
  import pandas
  from pandas import ArrowDtype, DataFrame, Index, Series, option_context, to_numeric
  import pandas._testing
label_desc: Use image node_id 35 for calling a global function with example usage: test_ignore_downcast_invalid_data() without return types