code: def setUp(self):
      super().setUp()
      self.stateful_working_dir = self.create_tempdir().full_path
      metadata_path = os.path.join(
          self.tmp_dir, "metadata", "metadata.db"
      )
      connection_config = metadata.sqlite_metadata_connection_config(
          metadata_path
      )
      connection_config.sqlite.SetInParent()
      self.mlmd_handle = metadata.Metadata(
          connection_config=connection_config
      )
      self.mlmd_handle.__enter__()
  
      self.execution_type = proto.ExecutionType(name="my_ex_type")
  
      self.example_artifact = standard_artifacts.Examples()
      example_artifact_uri = os.path.join(self.tmp_dir, "ExampleOutput")
      fileio.makedirs(example_artifact_uri)
      self.example_artifact.uri = example_artifact_uri
  
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 1 for calling the PostExecutionUtilsTest obj's underlying member method code with example usage: obj.setUp() without return types