class_docstr: Padding of an array.
class_docstr_tok: ["Padding","of","an","array","."]
code: def __init__(self, pad_width, mode, **keywords):
      self.mode = mode
      self.keywords = keywords
      self.pad_width = pad_width
      self.pad_bw = numpy.asarray(pad_width)
      if self.pad_bw.size == 1:
          self.pad_bw = numpy.repeat(self.pad_bw, 2)
  
file_path: chainer/chainer/functions/array/pad.py
imports: import numpy
  from chainer import backend
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 1 to create a new Pad object from inherited base classes: function_node with example: obj = Pad(pad_width, mode)