code: def git(*args: str) -> tuple[int, str, str]:
      proc = subprocess.Popen(
          ["git", *args], stdout=subprocess.PIPE, stderr=subprocess.PIPE
      )
      stdout, stderr = proc.communicate()
      out = stdout.decode("utf-8", errors="ignore")
      err = stderr.decode("utf-8", errors="ignore")
      return (proc.returncode, out, err)
  
file_path: bokeh/tests/test_defaults.py
imports: from __future__ import annotations
  import pytest
  import subprocess
  from pathlib import Path
  from tests.support.defaults import collect_defaults, output_defaults
label_desc: Use image node_id 1 for calling a global function with example usage: git() and returns: proc,  out,  err