code: def get_and_create_build_from_git(self, project_id=MACE_PROJECT_ID):
      commit_id = sh.git(
          "log",
          "--no-merges",
          "-n1",
          "--pretty=format:%H",
          _tty_out=False,
      ).strip()
      abbrev_commit_id = sh.git(
          "rev-parse", "%s~1" % commit_id, _tty_out=False
      ).strip()
      author_name = sh.git(
          "log", "--pretty=format:%an", "-1", commit_id, _tty_out=False
      ).strip()
      author_mail = sh.git(
          "log", "--pretty=format:%ae", "-1", commit_id, _tty_out=False
      ).strip()
      subject = sh.git(
          "log", "--pretty=format:%s", "-1", commit_id, _tty_out=False
      ).strip()
      return self.get_and_create_build(
          commit_id,
          abbrev_commit_id,
          author_name,
          author_mail,
          subject,
          project_id,
      )
  
file_path: mace/tools/dana/dana_util.py
imports: from dana.dana_cli import DanaCli
  from dana.dana_cli import DanaTrend
  import os
  import re
  import sh
  import time
label_desc: Use image node_id 5 for calling the DanaUtil obj's underlying member method code with example usage: obj.get_and_create_build_from_git(project_id) and returns: self