code: def test_summary_bug(self):
      # GH#3869
      ind = Index(["{other}%s", "~:{range}:0"], name="A")
      result = ind._summary()
      # shouldn't be formatted accidentally.
      assert "~:{range}:0" in result
      assert "{other}%s" in result
  
file_path: pandas/pandas/tests/indexes/base_class/test_formats.py
imports: import numpy
  import pytest
  from pandas._config import using_pyarrow_string_dtype
  import pandas._config.config
  from pandas import Index
  import pandas._testing
label_desc: Use image node_id 5 for calling the TestIndexRendering obj's underlying member method code with example usage: obj.test_summary_bug() without return types