code: def load_checkpoint(
      self, config, checkpoint_path, eval=False
  ):  # pylint: disable=unused-argument, redefined-builtin
      state = torch.load(
          checkpoint_path, map_location=torch.device("cpu")
      )
      self.load_state_dict(state["model"])
      if eval:
          self.eval()
          assert not self.training
          self.remove_weight_norm()
  
file_path: TTS/TTS/vocoder/models/melgan_generator.py
imports: import torch
  from torch import nn
  from torch.nn.utils import weight_norm
  from TTS.vocoder.layers.melgan import ResidualStack
label_desc: Use image node_id 5 for calling the MelganGenerator obj's underlying member method code with example usage: obj.load_checkpoint(config, checkpoint_path, eval) without return types