code: def test_load_checkpoint(self):
      chkp_path = os.path.join(
          get_tests_output_path(), "dummy_glow_tts_checkpoint.pth"
      )
      config = GlowTTSConfig(num_chars=32)
      model = GlowTTS.init_from_config(config, verbose=False).to(device)
      chkp = {}
      chkp["model"] = model.state_dict()
      torch.save(chkp, chkp_path)
      model.load_checkpoint(config, chkp_path)
      self.assertTrue(model.training)
      model.load_checkpoint(config, chkp_path, eval=True)
      self.assertFalse(model.training)
  
imports: import copy
  import os
  import unittest
  import torch
  from torch import optim
  from trainer.logging.tensorboard_logger import TensorboardLogger
  from tests import get_tests_data_path, get_tests_input_path, get_tests_output_path
  from TTS.tts.configs.glow_tts_config import GlowTTSConfig
  from TTS.tts.layers.losses import GlowTTSLoss
  from TTS.tts.models.glow_tts import GlowTTS
  from TTS.tts.utils.speakers import SpeakerManager
  from TTS.utils.audio import AudioProcessor
label_desc: Use image node_id 24 for calling the TestGlowTTS obj's underlying member method code with example usage: obj.test_load_checkpoint() without return types