code: def test_deprecated_config_args(
      self,
      model_name,
      conformer_ctc_bpe_model,
      conformer_rnnt_bpe_model,
  ):
      assert (
          ConfidenceConfig().method_cfg.alpha == 0.33
      ), "default `alpha` is supposed to be 0.33"
      model = (
          conformer_ctc_bpe_model
          if model_name == "ctc"
          else conformer_rnnt_bpe_model
      )
      assert isinstance(model, ASRModel)
  
      conf = OmegaConf.create({"temperature": 0.5})
      test_args_main = {"method_cfg": conf}
      test_args_greedy = {"confidence_method_cfg": conf}
      confidence_cfg = ConfidenceConfig(
          preserve_word_confidence=True, **test_args_main
      )
      model.change_decoding_strategy(
          RNNTDecodingConfig(
              fused_batch_size=-1,
              strategy="greedy",
              confidence_cfg=confidence_cfg,
          )
          if model_name == "rnnt"
          else CTCDecodingConfig(confidence_cfg=confidence_cfg)
      )
      assert model.cfg.decoding.confidence_cfg.method_cfg.alpha == 0.5
      model.change_decoding_strategy(
          RNNTDecodingConfig(
              fused_batch_size=-1,
              strategy="greedy",
              greedy=GreedyBatchedRNNTInferConfig(
                  preserve_frame_confidence=True, **test_args_greedy
              ),
          )
          if model_name == "rnnt"
          else CTCDecodingConfig(
              greedy=GreedyCTCInferConfig(
                  preserve_frame_confidence=True, **test_args_greedy
              )
          )
      )
      assert (
          model.cfg.decoding.greedy.confidence_method_cfg.alpha == 0.5
      )
  
imports: import json
  import math
  import tempfile
  from pathlib import Path
  import numpy
  import pytest
  from omegaconf import OmegaConf
  from pytorch_lightning import Trainer
  from nemo.collections.asr.models import ASRModel, EncDecCTCModelBPE, EncDecRNNTBPEModel
  from nemo.collections.asr.parts.submodules.ctc_decoding import CTCDecodingConfig
  from nemo.collections.asr.parts.submodules.ctc_greedy_decoding import GreedyCTCInferConfig
  from nemo.collections.asr.parts.submodules.rnnt_decoding import RNNTDecodingConfig
  from nemo.collections.asr.parts.submodules.rnnt_greedy_decoding import GreedyBatchedRNNTInferConfig
  from nemo.collections.asr.parts.utils.asr_confidence_benchmarking_utils import run_confidence_benchmark
  from nemo.collections.asr.parts.utils.asr_confidence_utils import ConfidenceConfig
label_desc: Use image node_id 2 for calling the TestASRConfidenceBenchmark obj's underlying member method code with example usage: obj.test_deprecated_config_args(model_name, conformer_ctc_bpe_model, conformer_rnnt_bpe_model) without return types