code: def __init__(self, d_hid, n_position=200):
      super(PositionalEncoding, self).__init__()
      self.register_buffer(
          "pos_table",
          self._get_sinusoid_encoding_table(n_position, d_hid),
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from paddle import ParamAttr
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn.initializer import Normal, XavierNormal
  import numpy
label_desc: Use image node_id 1 to create a new PositionalEncoding object from inherited base classes: nn with example: obj = PositionalEncoding(d_hid, n_position)