code: def __init__(self, hidden_size, cell, embedding_layer, name=None):
      super(Encoder, self).__init__(name)
      self.cell = cell(hidden_size)
      self.hidden_size = hidden_size
      self.embedding_layer = embedding_layer
      self.build((None, None, self.embedding_layer.embedding_size))
      self._built = True
  
imports: import numpy
  import tensorflow
  import tensorlayer
  from tensorlayer.layers import Dense, Dropout, Input
  from tensorlayer.layers.core import Layer
  from tensorlayer.models import Model
label_desc: Use image node_id 1 to create a new Encoder object from inherited base classes: Layer with example: obj = Encoder(hidden_size, cell, embedding_layer, name)