DOC: add dynamically generated doc-strings for generic functions (GH4717)