Normalizing flow is a method to convert a complicated distribution $p(x)$ to a simpler distribution …