docstr: Here we test that instantiation works for configs without cls class path in them.
  IMPORTANT: in this case, correct class type should call from_config_dict. This should work for Models.
docstr_tok: ["Here","we","test","that","instantiation","works","for","configs","without","cls","class","path","in","them",".","IMPORTANT",":","in","this","case",",","correct","class","type","should","call","from_config_dict",".","This","should","work","for","Models","."]
code: def test_from_config_dict_without_cls(self):
      """Here we test that instantiation works for configs without cls class path in them.
      IMPORTANT: in this case, correct class type should call from_config_dict. This should work for Models.
      """
      preprocessor = {
          "cls": "nemo.collections.asr.modules.AudioToMelSpectrogramPreprocessor",
          "params": dict({}),
      }
      encoder = {
          "cls": "nemo.collections.asr.modules.ConvASREncoder",
          "params": {
              "feat_in": 64,
              "activation": "relu",
              "conv_mask": True,
              "jasper": [
                  {
                      "filters": 1024,
                      "repeat": 1,
                      "kernel": [1],
                      "stride": [1],
                      "dilation": [1],
                      "dropout": 0.0,
                      "residual": False,
                      "separable": True,
                      "se": True,
                      "se_context_size": -1,
                  }
              ],
          },
      }
  
      decoder = {
          "cls": "nemo.collections.asr.modules.ConvASRDecoder",
          "params": {
              "feat_in": 1024,
              "num_classes": 28,
              "vocabulary": [
                  " ",
                  "a",
                  "b",
                  "c",
                  "d",
                  "e",
                  "f",
                  "g",
                  "h",
                  "i",
                  "j",
                  "k",
                  "l",
                  "m",
                  "n",
                  "o",
                  "p",
                  "q",
                  "r",
                  "s",
                  "t",
                  "u",
                  "v",
                  "w",
                  "x",
                  "y",
                  "z",
                  "'",
              ],
          },
      }
      modelConfig = DictConfig(
          {
              "preprocessor": DictConfig(preprocessor),
              "encoder": DictConfig(encoder),
              "decoder": DictConfig(decoder),
          }
      )
      obj = EncDecCTCModel.from_config_dict(config=modelConfig)
      assert isinstance(obj, EncDecCTCModel)
  
file_path: NeMo/tests/core/test_serialization.py
imports: import pytest
  from omegaconf import DictConfig
  from nemo.collections.asr.models import EncDecCTCModel
  from nemo.collections.asr.modules import SpectrogramAugmentation
  from nemo.core.classes.common import Serialization
label_desc: Use image node_id 2 for calling the TestSerialization obj's underlying member method code with example usage: obj.test_from_config_dict_without_cls() without return types