def METHOD_NAME(search_opts):
    vocab_size = 4
    encoder_size = 4
    decoder = StatelessDecoder(vocab_size, embed_size=4)
    joint_net = JointNetwork(vocab_size, encoder_size, 4, joint_space_size=2)
    with pytest.raises(AssertionError):
        _ = BeamSearchTransducer(
            decoder,
            joint_net,
            **search_opts,
        )