code: def test_overwrite_warns():
      match = r".*MyAccessor.*fake.*Series.*"
      with tm.assert_produces_warning(UserWarning, match=match):
          with ensure_removed(pd.Series, "fake"):
              setattr(pd.Series, "fake", 123)
              pd.api.extensions.register_series_accessor("fake")(
                  MyAccessor
              )
              s = pd.Series([1, 2])
              assert s.fake.prop == "item"
  
file_path: pandas/pandas/tests/test_register_accessor.py
imports: from collections.abc import Generator
  import contextlib
  import pytest
  import pandas
  import pandas._testing
  from pandas.core import accessor
label_desc: Use image node_id 5 for calling a global function with example usage: test_overwrite_warns() without return types