code: def test_decoding_change(self, hybrid_asr_model):
      assert isinstance(
          hybrid_asr_model.decoding.decoding,
          greedy_decode.GreedyBatchedRNNTInfer,
      )
  
      new_strategy = DictConfig({})
      new_strategy.strategy = "greedy"
      new_strategy.greedy = DictConfig({"max_symbols": 10})
      hybrid_asr_model.change_decoding_strategy(
          decoding_cfg=new_strategy
      )
      assert isinstance(
          hybrid_asr_model.decoding.decoding,
          greedy_decode.GreedyRNNTInfer,
      )
  
      new_strategy = DictConfig({})
      new_strategy.strategy = "beam"
      new_strategy.beam = DictConfig({"beam_size": 1})
      hybrid_asr_model.change_decoding_strategy(
          decoding_cfg=new_strategy
      )
      assert isinstance(
          hybrid_asr_model.decoding.decoding, beam_decode.BeamRNNTInfer
      )
      assert hybrid_asr_model.decoding.decoding.search_type == "default"
  
      new_strategy = DictConfig({})
      new_strategy.strategy = "beam"
      new_strategy.beam = DictConfig({"beam_size": 2})
      hybrid_asr_model.change_decoding_strategy(
          decoding_cfg=new_strategy
      )
      assert isinstance(
          hybrid_asr_model.decoding.decoding, beam_decode.BeamRNNTInfer
      )
      assert hybrid_asr_model.decoding.decoding.search_type == "default"
  
      new_strategy = DictConfig({})
      new_strategy.strategy = "tsd"
      new_strategy.beam = DictConfig({"beam_size": 2})
      hybrid_asr_model.change_decoding_strategy(
          decoding_cfg=new_strategy
      )
      assert isinstance(
          hybrid_asr_model.decoding.decoding, beam_decode.BeamRNNTInfer
      )
      assert hybrid_asr_model.decoding.decoding.search_type == "tsd"
  
      new_strategy = DictConfig({})
      new_strategy.strategy = "alsd"
      new_strategy.beam = DictConfig({"beam_size": 2})
      hybrid_asr_model.change_decoding_strategy(
          decoding_cfg=new_strategy
      )
      assert isinstance(
          hybrid_asr_model.decoding.decoding, beam_decode.BeamRNNTInfer
      )
      assert hybrid_asr_model.decoding.decoding.search_type == "alsd"
  
      assert hybrid_asr_model.ctc_decoding is not None
      assert isinstance(hybrid_asr_model.ctc_decoding, CTCDecoding)
      assert hybrid_asr_model.ctc_decoding.cfg.strategy == "greedy"
      assert hybrid_asr_model.ctc_decoding.preserve_alignments is False
      assert hybrid_asr_model.ctc_decoding.compute_timestamps is False
  
      cfg = CTCDecodingConfig(
          preserve_alignments=True, compute_timestamps=True
      )
      hybrid_asr_model.change_decoding_strategy(cfg, decoder_type="ctc")
  
      assert hybrid_asr_model.ctc_decoding.preserve_alignments is True
      assert hybrid_asr_model.ctc_decoding.compute_timestamps is True
  
imports: import copy
  import pytest
  import torch
  from omegaconf import DictConfig, ListConfig
  from nemo.collections.asr.models import EncDecHybridRNNTCTCModel
  from nemo.collections.asr.modules import RNNTDecoder, RNNTJoint, SampledRNNTJoint, StatelessTransducerDecoder
  from nemo.collections.asr.parts.submodules import rnnt_beam_decoding
  from nemo.collections.asr.parts.submodules import rnnt_greedy_decoding
  from nemo.collections.asr.parts.submodules.ctc_decoding import CTCDecoding, CTCDecodingConfig
  from nemo.collections.asr.parts.utils import rnnt_utils
  from nemo.core.utils import numba_utils
  from nemo.core.utils.numba_utils import __NUMBA_MINIMUM_VERSION__
  from nemo.utils.config_utils import assert_dataclass_signature_match
label_desc: Use image node_id 4 for calling the TestEncDecHybridRNNTCTCModel obj's underlying member method code with example usage: obj.test_decoding_change(hybrid_asr_model) without return types