code: def testRegisterOutputArtifactsOnInactiveExecutionFails(self):
      execution = execution_lib.put_execution(
          self._mlmd_handle,
          execution_lib.prepare_execution(
              self._mlmd_handle,
              metadata_store_pb2.ExecutionType(
                  name="my_execution_type"
              ),
              state=metadata_store_pb2.Execution.COMPLETE,
          ),
          self._generate_contexts(self._mlmd_handle),
      )
  
      with self.assertRaisesRegex(
          ValueError,
          "Cannot register output artifacts on inactive execution",
      ):
          execution_lib.register_output_artifacts(
              self._mlmd_handle, execution.id, {}
          )
  
imports: import collections
  import itertools
  import random
  from typing import Sequence
  from absl.testing import parameterized
  import tensorflow
  from tfx import types
  from tfx import version
  from tfx.orchestration import metadata
  from tfx.orchestration.experimental.core import task_gen_utils
  from tfx.orchestration.portable.mlmd import common_utils
  from tfx.orchestration.portable.mlmd import context_lib
  from tfx.orchestration.portable.mlmd import execution_lib
  from tfx.proto.orchestration import execution_result_pb2
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.types import artifact
  from tfx.types import artifact_utils
  from tfx.types import standard_artifacts
  from tfx.utils import test_case_utils
  from tfx.utils import typing_utils
  from google.protobuf import text_format
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 16 for calling the ExecutionLibTest obj's underlying member method code with example usage: obj.testRegisterOutputArtifactsOnInactiveExecutionFails() without return types