code: def add_beam_pipeline_args_to_component(
      component, beam_pipeline_args
  ):
      if isinstance(
          component.executor_spec, executor_spec.BeamExecutorSpec
      ):
          # Prepend pipeline-level beam_pipeline_args in front of component specific
          # ones to make component-level override pipeline-level args.
          cast(
              executor_spec.BeamExecutorSpec, component.executor_spec
          ).beam_pipeline_args = (
              beam_pipeline_args
              + cast(
                  executor_spec.BeamExecutorSpec,
                  component.executor_spec,
              ).beam_pipeline_args
          )
  
imports: import copy
  import enum
  from typing import Any, Collection, Dict, Iterable, Iterator, List, Optional, Tuple, Union, cast
  import warnings
  from tfx.dsl.compiler import constants
  from tfx.dsl.components.base import base_node
  from tfx.dsl.components.base import executor_spec
  from tfx.dsl.context_managers import dsl_context_registry
  from tfx.dsl.experimental.conditionals import conditional
  from tfx.dsl.placeholder import placeholder
  from tfx.orchestration import data_types
  from tfx.orchestration import metadata
  from tfx.types import channel
  from tfx.types import channel_utils
  from tfx.utils import doc_controls
  from tfx.utils import topsort
  from google.protobuf import message
label_desc: Use image node_id 1 for calling a global function with example usage: add_beam_pipeline_args_to_component(component, beam_pipeline_args) without return types