code: def test_init_multispeaker(self):
      num_speakers = 10
      args = VitsArgs(
          num_speakers=num_speakers, use_speaker_embedding=True
      )
      model = Vits(args)
      assertHasAttr(self, model, "emb_g")
  
      args = VitsArgs(num_speakers=0, use_speaker_embedding=True)
      model = Vits(args)
      assertHasNotAttr(self, model, "emb_g")
  
      args = VitsArgs(num_speakers=10, use_speaker_embedding=False)
      model = Vits(args)
      assertHasNotAttr(self, model, "emb_g")
  
      args = VitsArgs(d_vector_dim=101, use_d_vector_file=True)
      model = Vits(args)
      self.assertEqual(model.embedded_speaker_dim, 101)
  
imports: import copy
  import os
  import unittest
  import torch
  from trainer.logging.tensorboard_logger import TensorboardLogger
  from tests import assertHasAttr, assertHasNotAttr, get_tests_data_path, get_tests_input_path, get_tests_output_path
  from TTS.config import load_config
  from TTS.encoder.utils.generic_utils import setup_encoder_model
  from TTS.tts.configs.vits_config import VitsConfig
  from TTS.tts.models.vits import Vits, VitsArgs, VitsAudioConfig, amp_to_db, db_to_amp, load_audio, spec_to_mel, wav_to_mel, wav_to_spec
  from TTS.tts.utils.speakers import SpeakerManager
label_desc: Use image node_id 3 for calling the TestVits obj's underlying member method code with example usage: obj.test_init_multispeaker() without return types