class_docstr: Integration tests of AiPlatformTrainingComponent on managed pipeline.
class_docstr_tok: ["Integration","tests","of","AiPlatformTrainingComponent","on","managed","pipeline","."]
code: def testSuccessfulExecution(self):
      example_importer = importer.Importer(
          artifact_type=simple_artifacts.File,
          reimport=False,
          source_uri=f"gs://{self._TEST_DATA_BUCKET}/ai-platform-training/mnist",
      ).with_id("examples")
  
      train = (
          ai_platform_training_component.create_ai_platform_training(
              name="simple_aip_training",
              project_id=self._GCP_PROJECT_ID,
              region=self._GCP_REGION,
              image_uri=self._TRAINING_IMAGE,
              args=[
                  "--dataset",
                  placeholders.InputUriPlaceholder("examples"),
                  "--model-dir",
                  placeholders.OutputUriPlaceholder("model"),
                  "--lr",
                  placeholders.InputValuePlaceholder("learning_rate"),
              ],
              scale_tier="BASIC",
              inputs={"examples": example_importer.outputs["result"]},
              outputs={"model": standard_artifacts.Model},
              parameters={"learning_rate": "0.001"},
          )
      )
  
      pipeline_name = _PIPELINE_NAME_PREFIX.format(
          test_utils.random_id()
      )
      aip_training_pipeline = pipeline.Pipeline(
          pipeline_name=pipeline_name,
          pipeline_root=self._pipeline_root(pipeline_name),
          components=[example_importer, train],
      )
  
      self._run_pipeline(aip_training_pipeline)
  
file_path: tfx/tfx/orchestration/kubeflow/v2/components/experimental/ai_platform_training_component_integration_test.py
imports: import os
  import tensorflow
  from tfx.dsl.component.experimental import placeholders
  from tfx.dsl.components.common import importer
  from tfx.orchestration import pipeline
  from tfx.orchestration import test_utils
  from tfx.orchestration.kubeflow.v2.components.experimental import ai_platform_training_component
  from tfx.orchestration.kubeflow.v2.e2e_tests import base_test_case
  from tfx.types import standard_artifacts
  from tfx.types.experimental import simple_artifacts
label_desc: Use image node_id 1 for calling the AiPlatformTrainingComponentIntegrationTest obj's underlying member method code with example usage: obj.testSuccessfulExecution() without return types