Short of parsing the output (via dupterm to stringio), there isn't a way.
What are you trying to do? Why do you need the state.
That "/" on the end -- that means that this function doesn't take keyword arguments. See https://www.python.org/dev/peps/pep-0570/ and https://github.com/micropython/micropython/issues/5196
It doesn't. It's an M4, not M4F.