code: def createtree(root, node, nodelist, parent=None):
      id = len(nodelist)
      # print(id)
      token, children = get_token(node), get_child(node)
      if id == 0:
          root.token = token
          root.data = node
      else:
          newnode = AnyNode(
              id=id, token=token, data=node, parent=parent
          )
      nodelist.append(node)
      for child in children:
          if id == 0:
              createtree(root, child, nodelist, parent=root)
          else:
              createtree(root, child, nodelist, parent=newnode)
  
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 5 for calling a global function with example usage: createtree(root, node, nodelist, parent) without return types