@classmethod<EOL><INDENT>def _pipe(cls, pipe=None):<DEDENT>
return autoexec(pipe, name=cls.connection)<EOL>
Internal method for automatically wrapping a pipeline and
turning it into a nested pipeline with the correct connection
and one that automatically executes as it exits the context.

:param pipe: Pipeline, NestedPipeline or None
:return: Pipeline or NestedPipeline