code: def test_to_numeric_downcast_large_float_pd_bug(data, downcast):
      ps = pd.Series(data)
      gs = cudf.from_pandas(ps)
  
      expected = pd.to_numeric(ps, downcast=downcast)
      got = cudf.to_numeric(gs, downcast=downcast)
  
      if PANDAS_GE_150:
          assert_eq(expected, got)
      else:
          # Pandas bug: https://github.com/pandas-dev/pandas/issues/19729
          with pytest.raises(
              AssertionError, match="Series are different"
          ):
              assert_eq(expected, 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 10 for calling a global function with example usage: test_to_numeric_downcast_large_float_pd_bug(data, downcast) without return types