code: def save_checkpoint(
      model,
      optimizer,
      scheduler,
      model_disc,
      optimizer_disc,
      scheduler_disc,
      current_step,
      epoch,
      output_folder,
      **kwargs,
  ):
      file_name = "checkpoint_{}.pth.tar".format(current_step)
      checkpoint_path = os.path.join(output_folder, file_name)
      print(" > CHECKPOINT : {}".format(checkpoint_path))
      save_model(
          model,
          optimizer,
          scheduler,
          model_disc,
          optimizer_disc,
          scheduler_disc,
          current_step,
          epoch,
          checkpoint_path,
          **kwargs,
      )
  
file_path: TTS/TTS/vocoder/utils/io.py
imports: import os
  import torch
  import datetime
  import pickle
  from TTS.utils.io import RenamingUnpickler
label_desc: Use image node_id 3 for calling a global function with example usage: save_checkpoint(model, optimizer, scheduler, model_disc, optimizer_disc, scheduler_disc, current_step, epoch, output_folder) without return types