Expose wrap_in_plugin_context and trim_docstring