Neo4j python

How to Match and execute apoc procedures using python

simple create your query and store it in variable then run session.run(query)

eg.:

query_build = ''' MATCH p = (n:LABEL{name:'Kunal'})-[*]->()
                  with collect(p) as path
                  CALL apoc.convert.toTree(path) yield value
                  RETURN value'''
tree_json = session.run(query_build)`

Thank you so much.I got it