Creating Clang AST for LSTM Deep Learning Model

I have these CSV files as data set. I have code which train LSTM model on it. I have knowledge of models and working with them in python but don’t know about Clang.

I have attached two sample ASTs created with Clang.

Can someone look at these samples and give me code or something on how they were created.

Sample One:

Sample Two:

Background Information: Source for creating them was Code4Bench SQL Database. And the ASTs are used to train a Statement Level Defect Prediction Model for C code.