code: def test_series_setitem_upcasting_string_value():
      sr = cudf.Series([0, 0, 0], dtype=int)
      # This is a distinction with pandas, which lets you instead make an
      # object column with ["10", 0, 0]
      sr[0] = "10"
      assert_eq(pd.Series([10, 0, 0], dtype=int), sr)
      with pytest.raises(ValueError):
          sr[0] = "non-integer"
  
imports: import numpy
  import pandas
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_150
  from cudf.testing._utils import assert_eq, assert_exceptions_equal
label_desc: Use image node_id 17 for calling a global function with example usage: test_series_setitem_upcasting_string_value() without return types