code: def make_loss_args(**kwargs):
      defaults = dict(
          lambda_text2mel=1.0,
          lambda_adv=1.0,
          lambda_feat_match=2.0,
          lambda_mel=1.0,
          generator_adv_loss_params={
              "average_by_discriminators": False,
              "loss_type": "mse",
          },
          discriminator_adv_loss_params={
              "average_by_discriminators": False,
              "loss_type": "mse",
          },
          use_feat_match_loss=True,
          feat_match_loss_params={
              "average_by_discriminators": False,
              "average_by_layers": False,
              "include_final_outputs": True,
          },
          use_mel_loss=True,
          mel_loss_params={
              "fs": 22050,
              "n_fft": 16,
              "hop_length": 4,
              "win_length": None,
              "window": "hann",
              "n_mels": 4,
              "fmin": 0,
              "fmax": None,
              "log_base": None,
          },
      )
      defaults.update(kwargs)
      return defaults
  
file_path: espnet/test/espnet2/gan_tts/joint/test_joint_text2wav.py
imports: import pytest
  import torch
  from packaging.version import parse
  from espnet2.gan_tts.joint import JointText2Wav
label_desc: Use image node_id 4 for calling a global function with example usage: make_loss_args() and returns: defaults