Basic usage problem within PyMC3

Yes, what I need is the accepted samples of NUTS at each iteration, because the target model is also changed after each sample is drawn, maybe you can help to run the code, so that you can give better help, thank you very much!