code: def git_commit_id(path, ref):
      """Return the commit id of *ref* in the git repository at *path*."""
      cmd = git_cmd_base(path) + ["show", ref]
      try:
          output = run_subprocess(
              cmd, stderr=None, universal_newlines=True
          )[0]
      except CalledProcessError:
          raise NameError("Unknown git reference '%s'" % ref)
      commit = output.split("\n")[0]
      assert commit[:7] == "commit "
      return commit[7:]
  
imports: import time
  import os
  import sys
  import inspect
  import base64
  from subprocess import check_call, CalledProcessError
  import numpy
  from http.client import HTTPConnection
  from urllib.parse import urlencode
  from ..None import scene, config
  from ..io import read_png, write_png
  from ..gloo.util import _screenshot
  from ..util import run_subprocess
  from .None import IS_CI
label_desc: Use image node_id 11 for calling a global function with example usage: git_commit_id(path, ref) and returns: commit