code: def _parse_project_script(path):
      prj_dir = None
      top_func_name = None
  
      project_path = path + "/project.tcl"
  
      with open(project_path) as f:
          for line in f.readlines():
              if "set project_name" in line:
                  top_func_name = line.split('"')[-2]
                  prj_dir = top_func_name + "_prj"
              if "set backend" in line:
                  backend_name = line.split('"')[-2]
  
      if "accelerator" in backend_name:
          top_func_name += "_axi"
  
      return prj_dir, top_func_name
  
imports: import os
  import re
  import sys
  import xml.etree.ElementTree
label_desc: Use image node_id 2 for calling a global function with example usage: _parse_project_script(path) and returns: prj_dir,  top_func_name