code: def environment_for_gdb():
      env = {}
      for var in ["PATH", "LD_LIBRARY_PATH"]:
          try:
              env[var] = os.environ[var]
          except KeyError:
              pass
      return env
  
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 1 for calling a global function with example usage: environment_for_gdb() and returns: env