Here we have a function leading comment, comments for multilined list of arguments and a docstring.

The leading comment graphics is more or less obvious while a side comment brings a challenge. The side comment must be aligned with the lines in the function prototype and therefore I decided to draw it within the function header.

To draw a docstring the scope header is extended with one more horizontal section as shown on the example.