in reply to what does "res" do?

There is no builtin by that name.
There is no operator by that name.

It's either a function in your code or one imported from a module you loaded. We can't possibly guess what it does without seeing the function or knowing which module it came from.