code: def get_branch_name_from_hash(hash):
      import subprocess
  
      process = subprocess.Popen(
          ["git", "name-rev", "--name-only", hash],
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE,
      )
      stdout, stderr = process.communicate()
      if len(stderr) > 0:
          return hash[:10]
      else:
          return stdout.decode("utf-8").strip("\n")
  
file_path: dgl/benchmarks/scripts/generate_excel.py
imports: import json
  from itertools import product
  from pathlib import Path
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: get_branch_name_from_hash(hash) and returns: hash, stdout