code: def test_set_column_with_inplace_operator(
      using_copy_on_write, warn_copy_on_write
  ):
      df = DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
  
      # this should not raise any warning
      with tm.assert_produces_warning(None):
          df["a"] += 1
  
      # when it is not in a chain, then it should produce a warning
      df = DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
      ser = df["a"]
      with tm.assert_cow_warning(warn_copy_on_write):
          ser += 1
  
file_path: pandas/pandas/tests/copy_view/test_setitem.py
imports: import numpy
  from pandas import DataFrame, Index, MultiIndex, RangeIndex, Series
  import pandas._testing
  from pandas.tests.copy_view.util import get_array
label_desc: Use image node_id 9 for calling a global function with example usage: test_set_column_with_inplace_operator(using_copy_on_write, warn_copy_on_write) without return types