code: def test_locals_after_up(self):
      bt = self.get_stack_trace(
          script=SAMPLE_SCRIPT,
          cmds_after_breakpoint=["py-up", "py-up", "py-locals"],
      )
      self.assertMultilineMatches(
          bt,
          r"""^.*
  Locals for foo
  a = 1
  b = 2
  c = 3
  Locals for <module>
  .*$""",
      )
  
imports: import re
  import unittest
  from test.support import python_is_optimized
  from .util import run_gdb, setup_module, DebuggerTests, SAMPLE_SCRIPT
label_desc: Use image node_id 2 for calling the PyLocalsTests obj's underlying member method code with example usage: obj.test_locals_after_up() without return types