code: def __init__(self, vocab_size, hidden_size, init):
      super(Text_Generation_Net, self).__init__()
  
      self.embedding = Embedding(
          vocab_size, hidden_size, init, name="embedding"
      )
      self.lstm = tl.layers.RNN(
          cell=tf.keras.layers.LSTMCell(hidden_size),
          return_last_output=False,
          return_last_state=True,
          return_seq_2d=True,
          in_channels=hidden_size,
      )
      self.out_dense = Dense(
          vocab_size,
          in_channels=hidden_size,
          W_init=init,
          b_init=init,
          act=None,
          name="output",
      )
  
file_path: TensorLayer/examples/text_generation/tutorial_generate_text.py
imports: import os
  import re
  import time
  import nltk
  import numpy
  import tensorflow
  import tensorlayer
  from tensorlayer.layers import *
  from tensorlayer.models import Model
label_desc: Use image node_id 1 to create a new Text_Generation_Net object from inherited base classes: Model with example: obj = Text_Generation_Net(vocab_size, hidden_size, init)