class_docstr: Test component used in step 2 of a 2-step pipeline testing AI Platform simple artifact types.
class_docstr_tok: ["Test","component","used","in","step","2","of","a","2-step","pipeline","testing","AI","Platform","simple","artifact","types","."]
code: def __init__(
      self, examples: tfx.dsl.Channel, external_data: tfx.dsl.Channel
  ):
      stats_output_channel = channel_utils.as_channel(
          [simple_artifacts.Statistics()]
      )
      metrics_output_channel = channel_utils.as_channel(
          [simple_artifacts.Metrics()]
      )
      super().__init__(
          _ConsumerComponentSpec(
              examples=examples,
              external_data=external_data,
              stats=stats_output_channel,
              metrics=metrics_output_channel,
          )
      )
  
imports: import datetime
  import os
  from typing import List
  from kfp.pipeline_spec import pipeline_spec_pb2
  import tensorflow_model_analysis
  from tfx import v1
  from tfx.components.example_gen import utils
  from tfx.components.trainer.executor import Executor
  from tfx.dsl.component.experimental import executor_specs
  from tfx.dsl.component.experimental import placeholders
  from tfx.dsl.components.base import base_component
  from tfx.dsl.components.base import base_executor
  from tfx.dsl.components.base import base_node
  from tfx.dsl.components.base import executor_spec
  from tfx.types import channel_utils
  from tfx.types import component_spec
  from tfx.types.experimental import simple_artifacts
  from tfx.utils import proto_utils
  from google.protobuf import message
label_desc: Use image node_id 1 to create a new ConsumerComponent object from inherited base classes: base_component with example: obj = ConsumerComponent(examples, external_data)