code: def get_commit(path="."):
      p = subprocess.Popen(
          ["git", "rev-parse", "HEAD"],
          stdout=subprocess.PIPE,
          stderr=subprocess.STDOUT,
          cwd=path,
      )
  
      stdout, _ = p.communicate()
      if p.returncode != 0:
          return None
  
      return stdout.strip().decode("utf8")
  
file_path: studio/studio/git_util.py
imports: import re
  import subprocess
  import os
label_desc: Use image node_id 6 for calling a global function with example usage: get_commit(path) and returns: stdout, None