code: def is_gdb_available():
      try:
          # Try to use the same arguments as in GdbSession so that the
          # same error return gets propagated.
          proc = subprocess.run(
              gdb_command + ["--version"],
              env=environment_for_gdb(),
              bufsize=0,
              stdin=subprocess.PIPE,
              stdout=subprocess.PIPE,
              stderr=subprocess.STDOUT,
          )
      except FileNotFoundError:
          return False
      return proc.returncode == 0
  
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 2 for calling a global function with example usage: is_gdb_available() and returns: unknown, False