code: def test_pprint(self):
      # GH#12622
      nested_obj = {
          "foo": 1,
          "bar": [{"w": {"a": Timestamp("2011-01-01")}}] * 10,
      }
      result = pprint.pformat(nested_obj, width=50)
      expected = r"""{'bar': [{'w': {'a': Timestamp('2011-01-01 00:00:00')}},
           {'w': {'a': Timestamp('2011-01-01 00:00:00')}},
           {'w': {'a': Timestamp('2011-01-01 00:00:00')}},
           {'w': {'a': Timestamp('2011-01-01 00:00:00')}},
           {'w': {'a': Timestamp('2011-01-01 00:00:00')}},
           {'w': {'a': Timestamp('2011-01-01 00:00:00')}},
           {'w': {'a': Timestamp('2011-01-01 00:00:00')}},
           {'w': {'a': Timestamp('2011-01-01 00:00:00')}},
           {'w': {'a': Timestamp('2011-01-01 00:00:00')}},
           {'w': {'a': Timestamp('2011-01-01 00:00:00')}}],
   'foo': 1}"""
      assert result == expected
  
file_path: pandas/pandas/tests/scalar/timestamp/test_formats.py
imports: from datetime import datetime
  import pprint
  import dateutil.tz
  import pytest
  import pytz
  from pandas import Timestamp
label_desc: Use image node_id 4 for calling the TestTimestampRendering obj's underlying member method code with example usage: obj.test_pprint() without return types