code: def test_get_transformer_encoder(lhuc):
      config = sockeye.transformer.TransformerConfig(
          model_size=20,
          attention_heads=10,
          feed_forward_num_hidden=30,
          act_type="test_act",
          num_layers=40,
          dropout_attention=1.0,
          dropout_act=0.5,
          dropout_prepost=0.2,
          positional_embedding_type=C.LEARNED_POSITIONAL_EMBEDDING,
          preprocess_sequence="test_pre",
          postprocess_sequence="test_post",
          max_seq_len_source=50,
          max_seq_len_target=60,
          use_lhuc=lhuc,
      )
      encoder = sockeye.encoder.get_transformer_encoder(config)
      assert type(encoder) == sockeye.encoder.TransformerEncoder
  
imports: import pytest
  import sockeye.constants
  import sockeye.encoder
  import sockeye.transformer
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_transformer_encoder(lhuc) without return types