code: def testCreateComponent(self):
      component = (
          kfp_container_component.load_kfp_yaml_container_component(
              os.path.join(
                  self._testdata_path,
                  "kfp_container_component_test.yaml",
              )
          )
      )
      ref_component = container_component.create_container_component(
          name="Test_Kfp_Container_Component",
          image="image1",
          command=[
              "command1",
              "command2",
              "command3",
              placeholders.InputUriPlaceholder("Directory"),
              placeholders.InputValuePlaceholder("Subpath"),
              placeholders.OutputUriPlaceholder("File"),
              "--arg1",
              placeholders.InputUriPlaceholder("input1"),
              "--arg2",
              placeholders.InputValuePlaceholder("input2"),
              "--arg3",
              placeholders.OutputUriPlaceholder("output1"),
          ],
          inputs={
              "input1": standard_artifacts.String,
              "input2": standard_artifacts.String,
          },
          outputs={
              "output1": standard_artifacts.String,
          },
          parameters={},
      )
      self.assertEqual(type(component), type(ref_component))
      self.assertEqual(
          ref_component.EXECUTOR_SPEC, component.EXECUTOR_SPEC
      )
  
file_path: tfx/tfx/extensions/experimental/kfp_compatibility/kfp_container_component_test.py
imports: import os
  import tensorflow
  from tfx.dsl.component.experimental import container_component
  from tfx.dsl.component.experimental import placeholders
  from tfx.extensions.experimental.kfp_compatibility import kfp_container_component
  from tfx.extensions.experimental.kfp_compatibility.proto import kfp_component_spec_pb2
  from tfx.types import standard_artifacts
label_desc: Use image node_id 2 for calling the KubeflowContainerComponentTest obj's underlying member method code with example usage: obj.testCreateComponent() without return types