code: def test_replace_no_cast(self, ser, exp):
      # GH 9113
      # BUG: replace int64 dtype with bool coerces to int64
  
      series = pd.Series(ser)
      result = series.replace(2, True)
      expected = pd.Series(exp)
  
      tm.assert_series_equal(result, expected)
  
imports: import re
  import numpy
  import pytest
  from pandas._config import using_pyarrow_string_dtype
  import pandas
  import pandas._testing
  from pandas.core.arrays import IntervalArray
label_desc: Use image node_id 30 for calling the TestSeriesReplace obj's underlying member method code with example usage: obj.test_replace_no_cast(ser, exp) without return types