code: def assertGdbRepr(self, val, exp_repr=None):
      # Ensure that gdb's rendering of the value in a debugged process
      # matches repr(value) in this process:
      gdb_repr, gdb_output = self.get_gdb_repr("id(" + ascii(val) + ")")
      if not exp_repr:
          exp_repr = repr(val)
      self.assertEqual(
          gdb_repr,
          exp_repr,
          (
              "%r did not equal expected %r; full output was:\n%s"
              % (gdb_repr, exp_repr, gdb_output)
          ),
      )
  
imports: import re
  import sys
  from test import support
  from .util import BREAKPOINT_FN, GDB_VERSION, run_gdb, setup_module, DebuggerTests
label_desc: Use image node_id 3 for calling the PrettyPrintTests obj's underlying member method code with example usage: obj.assertGdbRepr(val, exp_repr) without return types