class_docstr: ernie encoder stack 
class_docstr_tok: ["ernie","encoder","stack"]
code: def __init__(self, cfg, name=None):
      super(ErnieEncoderStack, self).__init__()
      n_layers = cfg["num_hidden_layers"]
      self.block = nn.LayerList(
          [
              ErnieBlock(cfg, append_name(name, "layer_%d" % i))
              for i in range(n_layers)
          ]
      )
  
imports: import logging
  import re
  import time
  import paddle
  from paddle import nn
  from paddle.nn import functional
label_desc: Use image node_id 1 to create a new ErnieEncoderStack object from inherited base classes: nn with example: obj = ErnieEncoderStack(cfg, name)