code: def execute_git_command(args: List[str], cwd=None) -> str:
      """Executes a git command. This is expected to return a single string back.
  
      Returns
      -------
      output: str
          String combining stdout and stderr.
  
      """
      process = subprocess.run(
          ["git"] + args,
          capture_output=True,
          text=True,
          cwd=cwd,
          check=False,
      )
      return process.stdout.strip() + process.stderr.strip()
  
file_path: pytorch-lightning/src/lightning/app/utilities/git.py
imports: import subprocess
  from pathlib import Path
  from typing import List, Union
label_desc: Use image node_id 1 for calling a global function with example usage: execute_git_command(args, cwd) and returns: unknown