code: def test_iadd_preserves_name(self):
      # GH#17067, GH#19723 __iadd__ and __isub__ should preserve index name
      ser = Series([1, 2, 3])
      ser.index.name = "foo"
  
      ser.index += 1
      assert ser.index.name == "foo"
  
      ser.index -= 1
      assert ser.index.name == "foo"
  
imports: import datetime
  from decimal import Decimal
  import operator
  import numpy
  import pytest
  from pandas._config import using_pyarrow_string_dtype
  import pandas.util._test_decorators
  import pandas
  from pandas import Series, Timestamp, option_context
  import pandas._testing
  from pandas.core import ops
label_desc: Use image node_id 11 for calling the TestArithmetic obj's underlying member method code with example usage: obj.test_iadd_preserves_name() without return types