code: def test_publish_execution_results_succeeded_execution(
      self, mock_publish
  ):
      execution_info = self._prepare_execution_info()
  
      executor_output = execution_result_pb2.ExecutorOutput()
      executor_output.execution_result.code = 0
  
      mock_publish.return_value = [None, None]
  
      post_execution_utils.publish_execution_results(
          self.mlmd_handle, executor_output, execution_info, contexts=[]
      )
  
      [execution] = self.mlmd_handle.store.get_executions()
      mock_publish.assert_called_once_with(
          self.mlmd_handle,
          execution_id=execution.id,
          contexts=[],
          output_artifacts=execution_info.output_dict,
          executor_output=executor_output,
      )
      self.assertFalse(fileio.exists(self.stateful_working_dir))
  
imports: import os
  from absl.testing import parameterized
  from absl.testing.absltest import mock
  import tensorflow
  from tfx.dsl.io import fileio
  from tfx.orchestration import data_types_utils
  from tfx.orchestration import metadata
  from tfx.orchestration.experimental.core import component_generated_alert_pb2
  from tfx.orchestration.experimental.core import constants
  from tfx.orchestration.experimental.core import event_observer
  from tfx.orchestration.experimental.core import post_execution_utils
  from tfx.orchestration.experimental.core import task
  from tfx.orchestration.experimental.core import task_scheduler
  from tfx.orchestration.experimental.core import test_utils
  from tfx.orchestration.portable import data_types
  from tfx.orchestration.portable import execution_publish_utils
  from tfx.proto.orchestration import execution_invocation_pb2
  from tfx.proto.orchestration import execution_result_pb2
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.types import standard_artifacts
  from tfx.utils import status
  from tfx.utils import test_case_utils
  from ml_metadata import proto
label_desc: Use image node_id 5 for calling the PostExecutionUtilsTest obj's underlying member method code with example usage: obj.test_publish_execution_results_succeeded_execution(mock_publish) without return types