code: def test_decoding_change(self, asr_model):
      assert isinstance(
          asr_model.decoding.decoding,
          greedy_decode.GreedyBatchedRNNTInfer,
      )
  
      new_strategy = DictConfig({})
      new_strategy.strategy = "greedy"
      new_strategy.greedy = DictConfig({"max_symbols": 10})
      asr_model.change_decoding_strategy(decoding_cfg=new_strategy)
      assert isinstance(
          asr_model.decoding.decoding, greedy_decode.GreedyRNNTInfer
      )
  
      new_strategy = DictConfig({})
      new_strategy.strategy = "beam"
      new_strategy.beam = DictConfig({"beam_size": 1})
      asr_model.change_decoding_strategy(decoding_cfg=new_strategy)
      assert isinstance(
          asr_model.decoding.decoding, beam_decode.BeamRNNTInfer
      )
      assert asr_model.decoding.decoding.search_type == "default"
  
      new_strategy = DictConfig({})
      new_strategy.strategy = "beam"
      new_strategy.beam = DictConfig({"beam_size": 2})
      asr_model.change_decoding_strategy(decoding_cfg=new_strategy)
      assert isinstance(
          asr_model.decoding.decoding, beam_decode.BeamRNNTInfer
      )
      assert asr_model.decoding.decoding.search_type == "default"
  
      new_strategy = DictConfig({})
      new_strategy.strategy = "tsd"
      new_strategy.beam = DictConfig({"beam_size": 2})
      asr_model.change_decoding_strategy(decoding_cfg=new_strategy)
      assert isinstance(
          asr_model.decoding.decoding, beam_decode.BeamRNNTInfer
      )
      assert asr_model.decoding.decoding.search_type == "tsd"
  
      new_strategy = DictConfig({})
      new_strategy.strategy = "alsd"
      new_strategy.beam = DictConfig({"beam_size": 2})
      asr_model.change_decoding_strategy(decoding_cfg=new_strategy)
      assert isinstance(
          asr_model.decoding.decoding, beam_decode.BeamRNNTInfer
      )
      assert asr_model.decoding.decoding.search_type == "alsd"
  
imports: import os
  import shutil
  import tempfile
  import pytest
  import torch
  from omegaconf import DictConfig
  from nemo.collections.asr.models import ASRModel
  from nemo.collections.asr.models.rnnt_bpe_models import EncDecRNNTBPEModel
  from nemo.collections.asr.parts.submodules import rnnt_beam_decoding
  from nemo.collections.asr.parts.submodules import rnnt_greedy_decoding
  from nemo.collections.common import tokenizers
  from nemo.core.utils import numba_utils
  from nemo.core.utils.numba_utils import __NUMBA_MINIMUM_VERSION__
label_desc: Use image node_id 7 for calling the TestEncDecRNNTBPEModel obj's underlying member method code with example usage: obj.test_decoding_change(asr_model) without return types