code: def test_decoder_with_params_of_lm(self):
      feature_extractor = self.get_feature_extractor()
      tokenizer = self.get_tokenizer()
      decoder = self.get_decoder()
  
      processor = Wav2Vec2ProcessorWithLM(
          tokenizer=tokenizer,
          feature_extractor=feature_extractor,
          decoder=decoder,
      )
  
      logits = self._get_dummy_logits()
  
      alpha = 2.0
      beta = 5.0
      unk_score_offset = -20.0
      lm_score_boundary = True
  
      decoded_processor_out = processor.batch_decode(
          logits,
          alpha=alpha,
          beta=beta,
          unk_score_offset=unk_score_offset,
          lm_score_boundary=lm_score_boundary,
      )
      decoded_processor = decoded_processor_out.text
  
      logits_list = list(logits)
      decoder.reset_params(
          alpha=alpha,
          beta=beta,
          unk_score_offset=unk_score_offset,
          lm_score_boundary=lm_score_boundary,
      )
  
      with get_context("fork").Pool() as pool:
          decoded_decoder_out = decoder.decode_beams_batch(
              pool,
              logits_list,
          )
  
      decoded_decoder = [d[0][0] for d in decoded_decoder_out]
  
      self.assertListEqual(decoded_decoder, decoded_processor)
      self.assertListEqual(
          ["<s> </s> <s> </s> </s>", "</s> </s> <s> </s> </s>"],
          decoded_processor,
      )
      lm_model = processor.decoder.model_container[
          processor.decoder._model_key
      ]
      self.assertEqual(lm_model.alpha, 2.0)
      self.assertEqual(lm_model.beta, 5.0)
      self.assertEqual(lm_model.unk_score_offset, -20.0)
      self.assertEqual(lm_model.score_boundary, True)
  
imports: import json
  import os
  import shutil
  import tempfile
  import unittest
  from multiprocessing import get_context
  from pathlib import Path
  import datasets
  import numpy
  from datasets import load_dataset
  from parameterized import parameterized
  from transformers import AutoProcessor
  from transformers.models.wav2vec2 import Wav2Vec2CTCTokenizer, Wav2Vec2FeatureExtractor
  from transformers.models.wav2vec2.tokenization_wav2vec2 import VOCAB_FILES_NAMES
  from transformers.testing_utils import require_pyctcdecode, require_torch, require_torchaudio, slow
  from transformers.utils import FEATURE_EXTRACTOR_NAME, is_pyctcdecode_available, is_torch_available
  from ..wav2vec2.test_feature_extraction_wav2vec2 import floats_list
label_desc: Use image node_id 15 for calling the Wav2Vec2ProcessorWithLMTest obj's underlying member method code with example usage: obj.test_decoder_with_params_of_lm() without return types