code: def _generate(
      self,
      use_task_queue,
      ignore_update_node_state_tasks=False,
      fail_fast=False,
  ):
      return test_utils.run_generator(
          self._mlmd_cm,
          sptg.SyncPipelineTaskGenerator,
          self._pipeline,
          self._task_queue,
          use_task_queue,
          self._mock_service_job_manager,
          ignore_update_node_state_tasks=ignore_update_node_state_tasks,
          fail_fast=fail_fast,
      )
  
imports: import itertools
  import os
  from typing import Literal
  import uuid
  from absl.testing import parameterized
  from absl.testing.absltest import mock
  import tensorflow
  from tfx.dsl.compiler import constants
  from tfx.orchestration import data_types_utils
  from tfx.orchestration.experimental.core import constants
  from tfx.orchestration.experimental.core import mlmd_state
  from tfx.orchestration.experimental.core import pipeline_state
  from tfx.orchestration.experimental.core import service_jobs
  from tfx.orchestration.experimental.core import sync_pipeline_task_gen
  from tfx.orchestration.experimental.core import task
  from tfx.orchestration.experimental.core import task_gen_utils
  from tfx.orchestration.experimental.core import task_queue
  from tfx.orchestration.experimental.core import test_utils
  from tfx.orchestration.experimental.core.testing import test_sync_pipeline
  from tfx.orchestration import mlmd_connection_manager
  from tfx.orchestration.portable import runtime_parameter_utils
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.utils import status
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 6 for calling the SyncPipelineTaskGeneratorTest obj's underlying member method code with example usage: obj._generate(use_task_queue, ignore_update_node_state_tasks, fail_fast) and returns: test_utils