docstr: Here we test that instantiation works for configs with cls class path in them.
  Note that just Serialization.from_config_dict can be used to create an object
docstr_tok: ["Here","we","test","that","instantiation","works","for","configs","with","cls","class","path","in","them",".","Note","that","just","Serialization.from_config_dict","can","be","used","to","create","an","object"]
code: def test_from_config_dict_with_cls(self):
      """Here we test that instantiation works for configs with cls class path in them.
      Note that just Serialization.from_config_dict can be used to create an object
      """
      config = DictConfig(
          {
              "cls": "nemo.collections.asr.modules.SpectrogramAugmentation",
              "params": {
                  "rect_freq": 50,
                  "rect_masks": 5,
                  "rect_time": 120,
              },
          }
      )
      obj = Serialization.from_config_dict(config=config)
      assert isinstance(obj, SpectrogramAugmentation)
  
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 1 for calling the TestSerialization obj's underlying member method code with example usage: obj.test_from_config_dict_with_cls() without return types