code: def _add_transformer_branching_hparams(hparams):
      (
          encoder_num_cells,
          encoder_left_inputs,
          encoder_left_layers,
          encoder_left_output_dims,
          encoder_right_inputs,
          encoder_right_layers,
          encoder_right_output_dims,
          encoder_combiner_functions,
          encoder_final_combiner_function,
          encoder_dummy_activations,
          encoder_dummy_norms,
          _,
          _,
      ) = _get_transformer_branching_encoder_config()
  
      # Transformer encoder.
      hparams.add_hparam("encoder_left_inputs", encoder_left_inputs)
      hparams.add_hparam("encoder_left_layers", encoder_left_layers)
      hparams.add_hparam(
          "encoder_left_activations", encoder_dummy_activations
      )
      hparams.add_hparam(
          "encoder_left_output_dims", encoder_left_output_dims
      )
      hparams.add_hparam("encoder_left_norms", encoder_dummy_norms)
      hparams.add_hparam("encoder_right_inputs", encoder_right_inputs)
      hparams.add_hparam("encoder_right_layers", encoder_right_layers)
      hparams.add_hparam(
          "encoder_right_activations", encoder_dummy_activations
      )
      hparams.add_hparam(
          "encoder_right_output_dims", encoder_right_output_dims
      )
      hparams.add_hparam("encoder_right_norms", encoder_dummy_norms)
      hparams.add_hparam(
          "encoder_combiner_functions", encoder_combiner_functions
      )
      hparams.add_hparam("encoder_num_cells", encoder_num_cells)
      hparams.add_hparam(
          "encoder_final_combiner_function",
          encoder_final_combiner_function,
      )
  
      (
          decoder_num_cells,
          decoder_left_inputs,
          decoder_left_layers,
          decoder_left_output_dims,
          decoder_right_inputs,
          decoder_right_layers,
          decoder_right_output_dims,
          decoder_combiner_functions,
          decoder_final_combiner_function,
          decoder_dummy_activations,
          decoder_dummy_norms,
          _,
          _,
      ) = _get_transformer_branching_decoder_config()
  
      # Transformer decoder.
      hparams.add_hparam("decoder_left_inputs", decoder_left_inputs)
      hparams.add_hparam("decoder_left_layers", decoder_left_layers)
      hparams.add_hparam(
          "decoder_left_activations", decoder_dummy_activations
      )
      hparams.add_hparam(
          "decoder_left_output_dims", decoder_left_output_dims
      )
      hparams.add_hparam("decoder_left_norms", decoder_dummy_norms)
      hparams.add_hparam("decoder_right_inputs", decoder_right_inputs)
      hparams.add_hparam("decoder_right_layers", decoder_right_layers)
      hparams.add_hparam(
          "decoder_right_activations", decoder_dummy_activations
      )
      hparams.add_hparam(
          "decoder_right_output_dims", decoder_right_output_dims
      )
      hparams.add_hparam("decoder_right_norms", decoder_dummy_norms)
      hparams.add_hparam(
          "decoder_combiner_functions", decoder_combiner_functions
      )
      hparams.add_hparam("decoder_num_cells", decoder_num_cells)
      hparams.add_hparam(
          "decoder_final_combiner_function",
          decoder_final_combiner_function,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  from tensor2tensor.data_generators import problem_hparams
  from tensor2tensor.layers import common_attention
  from tensor2tensor.models import transformer
  from tensor2tensor.models.neural_architecture_search import nas_layers
  from tensor2tensor.models.neural_architecture_search import nas_model
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 4 for calling a global function with example usage: _add_transformer_branching_hparams(hparams) without return types