code: def _convert_target_fields_to_kv_pair(
      parsed_dict: Dict[str, Any]
  ) -> None:
      """Converts in place specific string fields to key value pairs of {constantValue: [Text]} for proto3 compatibility.
  
      Args:
        parsed_dict: dictionary obtained from parsing a Kubeflow component spec.
          This argument is modified in place.
  
      Returns:
        None
      """
      conversion_string_paths = [
          ["implementation", "container", "command"],
          ["implementation", "container", "args"],
      ]
      for path in conversion_string_paths:
          parsed_dict_location = parsed_dict
          for label in path:
              parsed_dict_location = parsed_dict_location.get(label, {})
          if isinstance(parsed_dict_location, list):
              for ind, value in enumerate(parsed_dict_location):
                  if isinstance(value, str):
                      parsed_dict_location[ind] = {
                          "constantValue": value
                      }
  
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 2 for calling a global function with example usage: _convert_target_fields_to_kv_pair(parsed_dict) without return types