code: def test_xtts_v2():
      """XTTS is too big to run on github actions. We need to test it locally"""
      output_path = os.path.join(get_tests_output_path(), "output.wav")
      speaker_wav = os.path.join(
          get_tests_data_path(), "ljspeech", "wavs", "LJ001-0001.wav"
      )
      speaker_wav_2 = os.path.join(
          get_tests_data_path(), "ljspeech", "wavs", "LJ001-0002.wav"
      )
      use_gpu = torch.cuda.is_available()
      if use_gpu:
          run_cli(
              "yes | "
              f"tts --model_name  tts_models/multilingual/multi-dataset/xtts_v2 "
              f'--text "This is an example." --out_path "{output_path}" --progress_bar False --use_cuda True '
              f'--speaker_wav "{speaker_wav}" "{speaker_wav_2}"  --language_idx "en"'
          )
      else:
          run_cli(
              "yes | "
              f"tts --model_name  tts_models/multilingual/multi-dataset/xtts_v2 "
              f'--text "This is an example." --out_path "{output_path}" --progress_bar False '
              f'--speaker_wav "{speaker_wav}" "{speaker_wav_2}" --language_idx "en"'
          )
  
file_path: TTS/tests/zoo_tests/test_models.py
imports: import glob
  import os
  import shutil
  import torch
  from tests import get_tests_data_path, get_tests_output_path, run_cli
  from TTS.tts.utils.languages import LanguageManager
  from TTS.tts.utils.speakers import SpeakerManager
  from TTS.utils.generic_utils import get_user_data_dir
  from TTS.utils.manage import ModelManager
label_desc: Use image node_id 4 for calling a global function with example usage: test_xtts_v2() without return types