import ast


def has_docstring(node):
    """Retuns true if given function or method has a docstring.

    """

    docstring = ast.get_docstring(node)

    if docstring is not None:
        return not docstring.startswith('mys-embedded-c++')
    else:
        return False