code: def test_constructor(self, asr_model):
      asr_model.train()
      # TODO: make proper config and assert correct number of weights
      # Check to/from config_dict:
      confdict = asr_model.to_config_dict()
      instance2 = EncDecRNNTBPEModel.from_config_dict(confdict)
      assert isinstance(instance2, EncDecRNNTBPEModel)
  
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 1 for calling the TestEncDecRNNTBPEModel obj's underlying member method code with example usage: obj.test_constructor(asr_model) without return types