code: def test_save_restore_artifact_agg(
      self, hybrid_asr_model, test_data_dir
  ):
      tokenizer_dir = os.path.join(
          test_data_dir, "asr", "tokenizers", "an4_spe_128"
      )
      tok_en = {"dir": tokenizer_dir, "type": "wpe"}
      # the below is really an english tokenizer but we pretend it is spanish
      tok_es = {"dir": tokenizer_dir, "type": "wpe"}
      tcfg = DictConfig(
          {"type": "agg", "langs": {"en": tok_en, "es": tok_es}}
      )
      with tempfile.TemporaryDirectory() as tmpdir:
          hybrid_asr_model.change_vocabulary(
              new_tokenizer_dir=tcfg, new_tokenizer_type="agg"
          )
  
          save_path = os.path.join(tmpdir, "ctc_agg.nemo")
          hybrid_asr_model.train()
          hybrid_asr_model.save_to(save_path)
  
          new_model = EncDecHybridRNNTCTCBPEModel.restore_from(
              save_path
          )
          assert isinstance(new_model, type(hybrid_asr_model))
          assert isinstance(
              new_model.tokenizer, tokenizers.AggregateTokenizer
          )
  
          # should be double
          assert new_model.tokenizer.tokenizer.vocab_size == 254
          assert len(new_model.tokenizer.tokenizer.get_vocab()) == 254
  
imports: import os
  import shutil
  import tempfile
  import pytest
  import torch
  from omegaconf import DictConfig
  from nemo.collections.asr.models.hybrid_rnnt_ctc_bpe_models import EncDecHybridRNNTCTCBPEModel
  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 CTCBPEDecoding, CTCBPEDecodingConfig
  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 5 for calling the TestEncDecHybridRNNTCTCBPEModel obj's underlying member method code with example usage: obj.test_save_restore_artifact_agg(hybrid_asr_model, test_data_dir) without return types