code: def make_vits_loss_args(**kwargs):
      defaults = dict(
          lambda_adv=1.0,
          lambda_mel=45.0,
          lambda_feat_match=2.0,
          lambda_dur=1.0,
          lambda_kl=1.0,
          generator_adv_loss_params={
              "average_by_discriminators": False,
              "loss_type": "mse",
          },
          discriminator_adv_loss_params={
              "average_by_discriminators": False,
              "loss_type": "mse",
          },
          feat_match_loss_params={
              "average_by_discriminators": False,
              "average_by_layers": False,
              "include_final_outputs": True,
          },
          mel_loss_params={
              "fs": 22050,
              "n_fft": 1024,
              "hop_length": 256,
              "win_length": None,
              "window": "hann",
              "n_mels": 80,
              "fmin": 0,
              "fmax": None,
              "log_base": None,
          },
      )
      defaults.update(kwargs)
      return defaults
  
file_path: espnet/test/espnet2/gan_svs/visinger/test_visinger.py
imports: import pytest
  import torch
  from espnet2.gan_svs.vits import VITS
label_desc: Use image node_id 4 for calling a global function with example usage: make_vits_loss_args() and returns: defaults