code: def _get_command_line_argument_type(
      command: kfp_component_spec_pb2.StringOrPlaceholder,
  ) -> placeholders.CommandlineArgumentType:
      """Converts a container command to the corresponding type.
  
      Args:
        command: StringOrPlaceholder which encodes a container command.
  
      Returns:
        command to be passed into create_container_component.
      """
      if command.HasField("constantValue"):
          return command.constantValue
      if command.HasField("inputValue"):
          return placeholders.InputValuePlaceholder(command.inputValue)
      if command.HasField("inputPath"):
          return placeholders.InputUriPlaceholder(command.inputPath)
      if command.HasField("outputPath"):
          return placeholders.OutputUriPlaceholder(command.outputPath)
      raise ValueError("Unrecognized command %s" % command)
  
file_path: tfx/tfx/extensions/experimental/kfp_compatibility/kfp_container_component.py
imports: from typing import Any, Callable, Dict
  from tfx.dsl.component.experimental import container_component
  from tfx.dsl.component.experimental import placeholders
  from tfx.dsl.components.base import base_component
  from tfx.extensions.experimental.kfp_compatibility.proto import kfp_component_spec_pb2
  from tfx.types import standard_artifacts
  import yaml
  from google.protobuf import json_format
label_desc: Use image node_id 3 for calling a global function with example usage: _get_command_line_argument_type(command) and returns: command, placeholders, placeholders, placeholders