How to parse transactions_generator in chia block?

transactions_generator contains encoded data, how to decode and parse transactions in block?

These might help:

This is a tool to analyze the chain from the blockchain database, and run all generator programs:

Testing of transactions_generator

Definition of transactions_generator, which is a SerializedProgram object

Definition of the SerializedProgram object