code: def build_output_parameter_spec(
      output_type: Any,
  ) -> pipeline_pb2.ComponentOutputsSpec.ParameterSpec:
      """Builds parameter type spec for an output channel."""
      parameter_types = {
          "Integer": pipeline_pb2.ParameterType.NUMBER_INTEGER,
          "Double": pipeline_pb2.ParameterType.NUMBER_DOUBLE,
          "String": pipeline_pb2.ParameterType.STRING,
          "Boolean": pipeline_pb2.ParameterType.BOOLEAN,
      }
      result = pipeline_pb2.ComponentOutputsSpec.ParameterSpec()
      if output_type not in parameter_types:
          raise ValueError(
              "{} is an unsupported component output type. Currently, we support Integer, Double, String, and Boolean types only.".format(
                  output_type
              )
          )
      result.parameter_type = parameter_types[output_type]
      return result
  
imports: import itertools
  import json
  import os
  import re
  from typing import Any, Dict, List, Mapping, Optional, Type, Union
  from kfp.pipeline_spec import pipeline_spec_pb2
  from tfx import types
  from tfx.dsl.io import fileio
  from tfx.orchestration import data_types
  from tfx.orchestration.kubeflow.v2 import parameter_utils
  from tfx.proto.orchestration import placeholder_pb2
  from tfx.types import artifact
  from tfx.types import channel
  from tfx.types import standard_artifacts
  from tfx.types.experimental import simple_artifacts
  from tfx.utils import json_utils
  from tfx.utils import name_utils
  import yaml
  from google.protobuf import struct_pb2
  from google.protobuf import json_format
  from google.protobuf import message
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 5 for calling a global function with example usage: build_output_parameter_spec(output_type) and returns: result