code: def gdb_has_frame_select():
      # Does this build of gdb have gdb.Frame.select ?
      stdout, stderr = run_gdb(
          "--eval-command=python print(dir(gdb.Frame))"
      )
      m = re.match(r".*\[(.*)\].*", stdout)
      if not m:
          raise unittest.SkipTest(
              f"Unable to parse output from gdb.Frame.select test\n"
              f"stdout={stdout!r}\n"
              f"stderr={stderr!r}\n"
          )
      gdb_frame_dir = m.group(1).split(", ")
      return "'select'" in gdb_frame_dir
  
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 a global function with example usage: gdb_has_frame_select() and returns: unknown