Conversion to mlr3pipelines PipeOpSource:
The argument is turned into a
TRUE, a deep copy is made
if the incoming object is a
PipeOp to ensure the resulting
object is a different reference from the incoming object.
as_pipeop() is an S3 method and can therefore be implemented by other packages
that may add objects that can naturally be converted to
PipeOps. Objects that
can be converted are for example
Object to convert.
Whether to return a (deep copied) clone if
xis a PipeOp.
x or a deep clone of it.