class_docstr: MyComponent.
code: def __init__(
      self,
      mandatory: Optional[types.Channel] = None,
      optional_but_needed: Optional[types.Channel] = None,
      optional_and_not_needed: Optional[types.Channel] = None,
  ):
      spec = MyComponentSpec(
          mandatory=mandatory,
          optional_but_needed=optional_but_needed,
          optional_and_not_needed=optional_and_not_needed,
          # We never provide the two second_* channels.
      )
      super().__init__(spec=spec)
  
imports: import os
  from typing import Any, Dict, List, Optional
  from tfx import types
  from tfx.dsl.components.base import base_component
  from tfx.dsl.components.base import base_executor
  from tfx.dsl.components.base import executor_spec
  from tfx.orchestration import pipeline
  from tfx.types import component_spec
  from tfx.types import standard_artifacts
label_desc: Use image node_id 1 to create a new MyComponent object from inherited base classes: base_component with example: obj = MyComponent(mandatory, optional_but_needed, optional_and_not_needed)