code: def _encode_runtime_parameter(
      param: data_types.RuntimeParameter,
  ) -> str:
      """Encode a runtime parameter into a placeholder for value substitution."""
      if param.ptype is int:
          type_enum = pipeline_pb2.RuntimeParameter.INT
      elif param.ptype is float:
          type_enum = pipeline_pb2.RuntimeParameter.DOUBLE
      else:
          type_enum = pipeline_pb2.RuntimeParameter.STRING
      type_str = pipeline_pb2.RuntimeParameter.Type.Name(type_enum)
      return f"{param.name}={type_str}:{str(dsl.PipelineParam(name=param.name))}"
  
file_path: tfx/tfx/orchestration/kubeflow/base_component.py
imports: from typing import Dict, List, Set
  from absl import logging
  from kfp import dsl
  from kubernetes import client
  from tfx.dsl.components.base import base_node
  from tfx.orchestration import data_types
  from tfx.orchestration import pipeline
  from tfx.orchestration.kubeflow.proto import kubeflow_pb2
  from tfx.proto.orchestration import pipeline_pb2
  from google.protobuf import json_format
label_desc: Use image node_id 1 for calling a global function with example usage: _encode_runtime_parameter(param) and returns: param, str, type_str, str, str