code: def latest_commit_id() -> str:
      cmd = 'git log --format="%H" -n 1'
      commit_id = subprocess.check_output(cmd, shell=True)
      return commit_id.decode("utf-8").strip()
  
imports: import os
  import subprocess
  import sys
  from typing import Optional
  import yaml
label_desc: Use image node_id 1 for calling a global function with example usage: latest_commit_id() and returns: commit_id