What is collect()?

The docs for KeyTable mention collect(), but they don’t give any description beyond this:

Collect key table as a Python object.

What type of python object does it output? How is the object formatted?

It returns a list of Struct. I made an issue, will fix asap.