class_docstr: Magics that provide central IPython functionality.
  
  These are various magics that don't fit into specific categories but that
  are all part of the base 'IPython experience'.
docstr: Toggle pretty printing on/off.
code: def pprint(self, parameter_s=""):
      """Toggle pretty printing on/off."""
      ptformatter = self.shell.display_formatter.formatters[
          "text/plain"
      ]
      ptformatter.pprint = bool(1 - ptformatter.pprint)
      print(
          "Pretty printing has been turned",
          ["OFF", "ON"][ptformatter.pprint],
      )
  
imports: from __future__ import print_function
  from __future__ import absolute_import
  import argparse
  import io
  import sys
  from pprint import pformat
  from IPython.core import magic_arguments, page
  from IPython.core.error import UsageError
  from IPython.core.magic import Magics, magics_class, line_magic, magic_escapes
  from IPython.utils.text import format_screen, dedent, indent
  from IPython.testing.skipdoctest import skip_doctest
  from IPython.utils.ipstruct import Struct
  from IPython.utils.py3compat import unicode_type
  from warnings import warn
  from logging import error
label_desc: Use image node_id 7 for calling the BasicMagics obj's underlying member method code with example usage: obj.pprint(parameter_s) without return types