code: def get_git_diff_stdout() -> str:
      """Run git diff with appropriate arguments and capture stdout as a str."""
      proc = subprocess.run(
          ["git", "diff", "origin/main", "HEAD"],
          capture_output=True,
          check=True,
          text=True,
      )
      return proc.stdout
  
file_path: tensorflow/third_party/xla/build_tools/lint/diff_parser.py
imports: import dataclasses
  import re
  import subprocess
  from typing import Generator, Iterable, TypeVar
label_desc: Use image node_id 3 for calling a global function with example usage: get_git_diff_stdout() and returns: proc