code: def testBuildDynamicExecutionPropertiesUpstreamComponentSpec(self):
      dynamic_exec_properties = {
          ("range_config_generator", "range_config"): "String"
      }
      pipeline = (
          test_utils.two_step_pipeline_with_dynamic_exec_properties()
      )
      range_config_gen = pipeline.components[0]
      component_defs = {}
      _ = self._sole(
          step_builder.StepBuilder(
              node=range_config_gen,
              image="gcr.io/tensorflow/tfx:latest",
              component_defs=component_defs,
              deployment_config=pipeline_pb2.PipelineDeploymentConfig(),
              dynamic_exec_properties=dynamic_exec_properties,
              dsl_context_reg=dsl_context_registry.get(),
          ).build()
      )
      self.assertProtoEquals(
          test_utils.get_proto_from_test_data(
              "expected_dynamic_execution_properties_upstream_component_spec.pbtxt",
              pipeline_pb2.ComponentSpec(),
          ),
          component_defs["range_config_generator"],
      )
  
imports: from typing import Any, Dict
  from kfp.pipeline_spec import pipeline_spec_pb2
  import tensorflow
  from tfx import components
  from tfx import v1
  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.experimental.conditionals import conditional
  from tfx.dsl.input_resolution.strategies import latest_artifact_strategy
  from tfx.dsl.input_resolution.strategies import latest_blessed_model_strategy
  from tfx.extensions.google_cloud_big_query.example_gen import component
  from tfx.orchestration import data_types
  from tfx.orchestration.kubeflow import decorators
  from tfx.orchestration.kubeflow.v2 import parameter_utils
  from tfx.orchestration.kubeflow.v2 import step_builder
  from tfx.orchestration.kubeflow.v2 import test_utils
  from tfx.proto import example_gen_pb2
  from tfx.types import channel
  from tfx.types import channel_utils
  from tfx.types import standard_artifacts
label_desc: Use image node_id 9 for calling the StepBuilderTest obj's underlying member method code with example usage: obj.testBuildDynamicExecutionPropertiesUpstreamComponentSpec() without return types