code: def test_get_executions_num_of_failure(self):
      failed_execution = metadata_store_pb2.Execution(
          last_known_state=metadata_store_pb2.Execution.FAILED
      )
      failed_execution.custom_properties[
          task_gen_utils._EXTERNAL_EXECUTION_INDEX
      ].int_value = 1
  
      e1 = metadata_store_pb2.Execution(
          last_known_state=metadata_store_pb2.Execution.FAILED
      )
      e1.custom_properties[
          task_gen_utils._EXTERNAL_EXECUTION_INDEX
      ].int_value = 0
  
      e2 = metadata_store_pb2.Execution(
          last_known_state=metadata_store_pb2.Execution.FAILED
      )
      e2.custom_properties[
          task_gen_utils._EXTERNAL_EXECUTION_INDEX
      ].int_value = 1
  
      e3 = metadata_store_pb2.Execution(
          last_known_state=metadata_store_pb2.Execution.RUNNING
      )
      e3.custom_properties[
          task_gen_utils._EXTERNAL_EXECUTION_INDEX
      ].int_value = 1
  
      e4 = metadata_store_pb2.Execution(
          last_known_state=metadata_store_pb2.Execution.FAILED
      )
      e4.custom_properties[
          task_gen_utils._EXTERNAL_EXECUTION_INDEX
      ].int_value = 1
  
      e5 = metadata_store_pb2.Execution(
          last_known_state=metadata_store_pb2.Execution.FAILED
      )
      e5.custom_properties[
          task_gen_utils._EXTERNAL_EXECUTION_INDEX
      ].int_value = 1
  
      executions = [e1, e2, e3, e4, e5]
      self.assertEqual(
          3,  # e2, e4 and e5 are failed
          task_gen_utils.get_num_of_failures_from_failed_execution(
              executions, failed_execution
          ),
      )
  
imports: import os
  import time
  from unittest import mock
  import uuid
  from absl.testing import parameterized
  import tensorflow
  from tfx import types
  from tfx import version
  from tfx.orchestration import data_types_utils
  from tfx.orchestration import node_proto_view
  from tfx.orchestration.experimental.core import constants
  from tfx.orchestration.experimental.core import pipeline_state
  from tfx.orchestration.experimental.core import task
  from tfx.orchestration.experimental.core import task_gen_utils
  from tfx.orchestration.experimental.core import test_utils
  from tfx.orchestration.experimental.core.testing import test_async_pipeline
  from tfx.orchestration.experimental.core.testing import test_dynamic_exec_properties_pipeline
  from tfx.orchestration import mlmd_connection_manager
  from tfx.orchestration.portable import outputs_utils
  from tfx.orchestration.portable.mlmd import execution_lib
  from tfx.proto.orchestration import execution_result_pb2
  from tfx.proto.orchestration import placeholder_pb2
  from tfx.types import artifact_utils
  from tfx.types import standard_artifacts
  from tfx.utils import status
  from tfx.utils import test_case_utils
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 13 for calling the TaskGenUtilsTest obj's underlying member method code with example usage: obj.test_get_executions_num_of_failure() without return types