code: def plot_vae_samples(vae, visdom_session):
      vis = visdom_session
      x = torch.zeros([1, 784])
      for i in range(10):
          images = []
          for rr in range(100):
              # get loc from the model
              sample_loc_i = vae.model(x)
              img = sample_loc_i[0].view(1, 28, 28).cpu().data.numpy()
              images.append(img)
          vis.images(images, 10, 2)
  
imports: import torch
label_desc: Use image node_id 3 for calling a global function with example usage: plot_vae_samples(vae, visdom_session) without return types