code: def gdb():
      skip_if_gdb_unavailable()
      gdb = GdbSession("-q", python_executable())
      try:
          gdb.wait_until_ready()
          gdb.run_command("set confirm off")
          gdb.run_command("set print array-indexes on")
          # Make sure gdb formatting is not terminal-dependent
          gdb.run_command("set width unlimited")
          gdb.run_command("set charset UTF-8")
          yield gdb
      finally:
          gdb.join()
  
imports: from functools import lru_cache
  import os
  import re
  import shutil
  import subprocess
  import sys
  import pytest
  import pyarrow
label_desc: Use image node_id 6 for calling a global function with example usage: gdb() without return types