Add snippet for function with docstring.