code: def __init__(self, window_size=11, size_average=True):
      super().__init__()
      self.window_size = window_size
      self.size_average = size_average
      self.channel = 1
      self.window = create_window(window_size, self.channel)
  
file_path: TTS/TTS/tts/utils/ssim.py
imports: from math import exp
  import torch
  import torch.nn.functional
  from torch.autograd import Variable
label_desc: Use image node_id 1 to create a new SSIM object from inherited base classes: torch.nn with example: obj = SSIM(window_size, size_average)