This doesn’t answer my question.
Is summary a function that you use from some library? If so, could you point me to the documentation for this function?
If summary is defined in your own code, could you share the code for this function?
Without knowing what summary is supposed to print, I cannot make sense from its output.