code: def git(command, **kwargs):
      command = ["git"] + command
      logging.info(f"Running {command}")
      proc = subprocess.run(
          command, stdout=subprocess.PIPE, encoding="utf-8", **kwargs
      )
      if proc.returncode != 0:
          raise RuntimeError(
              f"Command failed {command}:\nstdout:\n{proc.stdout}"
          )
      return proc.stdout.strip()
  
imports: import json
  import subprocess
  import re
  import os
  import base64
  import logging
  from urllib import request, error
  from typing import Dict, Tuple, Any, Optional, List
label_desc: Use image node_id 5 for calling a global function with example usage: git(command) and returns: proc