class_docstr: ## Sampler
  
  This samples a sketch from the decoder and plots it
class_docstr_tok: ["#","#","Sampler","This","samples","a","sketch","from","the","decoder","and","plots","it"]
code: def __init__(self, encoder: EncoderRNN, decoder: DecoderRNN):
      self.decoder = decoder
      self.encoder = encoder
  
imports: import math
  from typing import Optional, Tuple, Any
  import numpy
  import torch
  import torch.nn
  from matplotlib import pyplot
  from torch import optim
  from torch.utils.data import Dataset, DataLoader
  import einops
  from labml import lab, experiment, tracker, monit
  from labml_helpers.device import DeviceConfigs
  from labml_helpers.module import Module
  from labml_helpers.optimizer import OptimizerConfigs
  from labml_helpers.train_valid import TrainValidConfigs, hook_model_outputs, BatchIndex
label_desc: Use image node_id 1 to create a new Sampler object  with example: obj = Sampler(encoder, decoder)