def METHOD_NAME(self):
    def my_pipeline():
        DeleteWorkspaceItemOp(
            name="deleteworkspaceitem"
        )
    self.assertRaises(ValueError, lambda: kfp.compiler.Compiler()._create_workflow(my_pipeline))