How to get textual representation of core erlang?

Hi, I have a bunch of code which is represented in core-erlang records. Is there a function which coverts these records into printable string/binary/iodata?

I’ve read in core-erlang specification that there is a specific representation, so I figured that there must be a function to get one

I’ve used core_pp:format/1 for this in the past, passing it the Core Erlang representation of an entire module.

Thanks.

For future readers: :core_pp.format_all works not only on c_module but on subtrees too