code: def test_constructor(self, msdd_model):
      diar_model = msdd_model.train()
      assert diar_model.cfg.scale_n == len(
          diar_model.cfg.diarizer.speaker_embeddings.parameters.window_length_in_sec
      )
      assert diar_model.cfg.scale_n == len(
          diar_model.cfg.diarizer.speaker_embeddings.parameters.shift_length_in_sec
      )
      assert diar_model.cfg.scale_n == len(
          diar_model.cfg.diarizer.speaker_embeddings.parameters.multiscale_weights
      )
      assert (
          diar_model.cfg.msdd_module.num_spks
          == diar_model.cfg.max_num_of_spks
      )
      # TODO: make proper config and assert correct number of weights
      # Check to/from config_dict:
      confdict = diar_model.to_config_dict()
      instance2 = EncDecDiarLabelModel.from_config_dict(confdict)
      assert isinstance(instance2, EncDecDiarLabelModel)
  
imports: import pytest
  import torch
  from omegaconf import DictConfig
  from nemo.collections.asr.models import EncDecDiarLabelModel
label_desc: Use image node_id 1 for calling the TestEncDecDiarLabelModel obj's underlying member method code with example usage: obj.test_constructor(msdd_model) without return types