code: def test_replace_not_case_sensitive_not_regex(any_string_dtype):
      # https://github.com/pandas-dev/pandas/issues/41602
      ser = Series(
          ["A.", "a.", "Ab", "ab", np.nan], dtype=any_string_dtype
      )
  
      with tm.maybe_produces_warning(
          PerformanceWarning, using_pyarrow(any_string_dtype)
      ):
          result = ser.str.replace("a", "c", case=False, regex=False)
      expected = Series(
          ["c.", "c.", "cb", "cb", np.nan], dtype=any_string_dtype
      )
      tm.assert_series_equal(result, expected)
  
      with tm.maybe_produces_warning(
          PerformanceWarning, using_pyarrow(any_string_dtype)
      ):
          result = ser.str.replace("a.", "c.", case=False, regex=False)
      expected = Series(
          ["c.", "c.", "Ab", "ab", np.nan], dtype=any_string_dtype
      )
      tm.assert_series_equal(result, expected)
  
imports: from datetime import datetime
  import re
  import numpy
  import pytest
  from pandas.errors import PerformanceWarning
  import pandas.util._test_decorators
  import pandas
  from pandas import Series, _testing
  from pandas.tests.strings import _convert_na_value, object_pyarrow_numpy
label_desc: Use image node_id 29 for calling a global function with example usage: test_replace_not_case_sensitive_not_regex(any_string_dtype) without return types