code: def set_structural_runtime_parameter_pb(
      pb: pipeline_pb2.StructuralRuntimeParameter,
      str_or_params: Sequence[
          Union[
              str,
              Tuple[str, Type[types.Property]],
              Tuple[str, Type[types.Property], types.Property],
          ]
      ],
  ) -> pipeline_pb2.StructuralRuntimeParameter:
      """Helper function to fill a StructuralRuntimeParameter proto.
  
      Args:
        pb: A StructuralRuntimeParameter proto to be filled in.
        str_or_params: A list of either a constant string, or args (name, type,
          default value) to construct a normal runtime parameter. The args will be
          unpacked and passed to set_runtime_parameter_pb. The parts in a structural
          runtime parameter will have the same order as the elements in this list.
  
      Returns:
        A StructuralRuntimeParameter proto filled with provided values.
      """
      for str_or_param in str_or_params:
          str_or_param_pb = pb.parts.add()
          if isinstance(str_or_param, str):
              str_or_param_pb.constant_value = str_or_param
          else:
              set_runtime_parameter_pb(
                  str_or_param_pb.runtime_parameter, *str_or_param
              )
      return pb
  
imports: from typing import cast, List, Optional, Sequence, Tuple, Type, Union, Dict, Any, Set
  from tfx import types
  from tfx.dsl.compiler import constants
  from tfx.dsl.components.base import base_node
  from tfx.dsl.components.common import importer
  from tfx.dsl.components.common import resolver
  from tfx.dsl.context_managers import dsl_context_registry
  from tfx.dsl.placeholder import placeholder
  from tfx.orchestration import data_types_utils
  from tfx.orchestration import pipeline
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.types import channel
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: set_structural_runtime_parameter_pb(pb, str_or_params) and returns: pb