docstr: Check that creating a custom Python KenLM wrapper produces same results as C++ based KenLM
docstr_tok: ["Check","that","creating","a","custom","Python","KenLM","wrapper","produces","same","results","as","C++","based","KenLM"]
code: def test_custom_kenlm_decoder(self):
      """Check that creating a custom Python KenLM wrapper produces same results as C++ based KenLM"""
      emissions = self._get_emissions()
  
      kenlm_file = get_asset_path("decoder/kenlm.arpa")
      custom_kenlm = self._get_custom_kenlm(kenlm_file)
      kenlm_decoder_custom = self._get_decoder(lm=custom_kenlm)
      kenlm_decoder_cpp = self._get_decoder(lm=kenlm_file)
  
      kenlm_custom_results = kenlm_decoder_custom(emissions)
      kenlm_cpp_results = kenlm_decoder_cpp(emissions)
  
      self.assertEqual(kenlm_custom_results, kenlm_cpp_results)
  
imports: import itertools
  import torch
  from parameterized import parameterized
  from torchaudio_unittest.common_utils import get_asset_path, skipIfNoCtcDecoder, TempDirMixin, TorchaudioTestCase
label_desc: Use image node_id 9 for calling the CTCDecoderTest obj's underlying member method code with example usage: obj.test_custom_kenlm_decoder() without return types