def doc_template_provider(m):
    """ Decorator to mark docstring from method `m` as being a doc template

    We label the docstring of `m` (``m.__doc__``) to be put into the
    ``_doc_templates`` attribute of the enclosing class, when the klass is
    decorated with the ``doc_templater`` decorator.
    """
    m._doc_template = m.__doc__
    m.__doc__ = None
    return m
