code: def get_commit_hash():
      """https://stackoverflow.com/questions/14989858/get-the-current-git-hash-in-a-python-script"""
      # try:
      #     subprocess.check_output(['git', 'diff-index', '--quiet',
      #                              'HEAD'])  # Verify client is clean
      # except:
      #     raise RuntimeError(
      #         " !! Commit before training to get the commit hash.")
      try:
          commit = (
              subprocess.check_output(
                  ["git", "rev-parse", "--short", "HEAD"]
              )
              .decode()
              .strip()
          )
      # Not copying .git folder into docker container
      except subprocess.CalledProcessError:
          commit = "0000000"
      print(" > Git Hash: {}".format(commit))
      return commit
  
imports: import datetime
  import glob
  import os
  import shutil
  import subprocess
  import sys
  from pathlib import Path
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: get_commit_hash() and returns: commit