code: def getast(path):
      programfile = open(path, encoding="utf-8")
      # print(os.path.join(rt,file))
      programtext = programfile.read()
      # programtext=programtext.replace('\r','')
      programfile.close()
      programtokens = javalang.tokenizer.tokenize(programtext)
      # print("programtokens", list(programtokens))
      parser = javalang.parse.Parser(programtokens)
      programast = parser.parse_member_declaration()
  
      # print(programast)
      return programast
  
file_path: amain/get_matrix.py
imports: import numpy
  import javalang
  from javalang.ast import Node
  from anytree import AnyNode
  import time
  import os
  from multiprocessing import Pool
  from functools import partial
label_desc: Use image node_id 2 for calling a global function with example usage: getast(path) and returns: programast