@interpolate_doc
def func():
    '\n    this is a docstring\n\n    {interpolate_example.foo}\n\n        {bar}\n\n    {Foo!K}\n    '
this is a docstring

{interpolate_example.foo}

    {bar}

{Foo!K}
@interpolate_doc
def func():
    '\n    this is a docstring\n\n    {interpolate_example.foo}\n\n        {bar}\n\n    {Foo!K}\n    '