code: def test_passthrough_encoder(enc_reduce_output, input_sequence):
      encoder_parameters = {"reduce_output": enc_reduce_output}
  
      # retrieve encoder to test
      encoder_obj = get_encoder_cls(SEQUENCE, "passthrough")(
          **encoder_parameters
      )
  
      encoder_out = encoder_obj(input_sequence)
  
      assert ENCODER_OUTPUT in encoder_out
      assert (
          encoder_out[ENCODER_OUTPUT].shape == (BATCH_SIZE, SEQ_SIZE, 1)
          if enc_reduce_output is None
          else (BATCH_SIZE, 1)
      )
  
file_path: ludwig/tests/integration_tests/test_sequence_encoders.py
imports: import logging
  from typing import Union
  import numpy
  import pytest
  import torch
  from ludwig.constants import ENCODER_OUTPUT, ENCODER_OUTPUT_STATE, SEQUENCE
  from ludwig.encoders.registry import get_encoder_cls
  from tests.integration_tests.utils import ENCODERS
label_desc: Use image node_id 3 for calling a global function with example usage: test_passthrough_encoder(enc_reduce_output, input_sequence) without return types