def METHOD_NAME(name, object, doc_section, docstring):
    '''
    Add automatic documentation to gangadoc system.
    "doc_section" specifies how the object should be documented.
    If docstring is specified then use it to document the object. Otherwise use __doc__ (via pydoc utilities).
    '''
    from GangaCore.Utility.logic import implies
    assert (implies(docstring, doc_section == "Objects"))
    # assert(not docstring and not object.__doc__)
    _GPIhelp_sections[doc_section] += [(name, object, docstring)]