r"""
    Print your name.

    :param name: Name to print
    :type  name: string

    .. [[[cog cog.out(exobj.get_sphinx_autodoc(width=69))]]]
    .. [[[end]]]

def func(name):
    r"""
    Print your name.

    :param name: Name to print
    :type  name: string

    .. [[[cog cog.out(exobj.get_sphinx_autodoc(width=69))]]]
    .. [[[end]]]

    """
    # Raise condition evaluated in same call as exception addition
    pexdoc.addex(TypeError, "Argument `name` is not valid", not isinstance(name, str))
    return "My name is {0}".format(name)