code: def get_commit():
      directory = os.path.dirname(sys.argv[0])
      return (
          subprocess.Popen(
              "cd {} && git log | head -n 1".format(directory),
              shell=True,
              stdout=subprocess.PIPE,
          )
          .stdout.read()
          .split()[1]
          .decode()
      )
  
file_path: decanlp/arguments.py
imports: import os
  from copy import deepcopy
  import types
  import sys
  from argparse import ArgumentParser
  import subprocess
  import json
  import datetime
  from dateutil import tz
label_desc: Use image node_id 1 for calling a global function with example usage: get_commit() and returns: subprocess