https://medium.com/@monocosmo77/the-concept-of-normalizing-flow-in-machine-learning-part1-62d3829a5372