class_docstr: A wrapper to run commands in a directory (specifically for use in CI tests)
docstr: Run a git command based on *args
docstr_tok: ["Run","a","git","command","based","on","*","args"]
code: def run(self, *args, **kwargs):
      """
      Run a git command based on *args
      """
      proc = subprocess.run(
          ["git"] + list(args),
          encoding="utf-8",
          cwd=self.cwd,
          check=False,
          **kwargs,
      )
      if proc.returncode != 0:
          raise RuntimeError(f"git command failed: '{args}'")
  
      return proc
  
imports: import subprocess
  import pathlib
  from typing import List, Any
label_desc: Use image node_id 2 for calling the TempGit obj's underlying member method code with example usage: obj.run() and returns: proc