can you explain how to extract context path from AST ? it will help a lot if you provide that details.