class_docstr: Image captioning model.
docstr: Batch of images to captions.
docstr_tok: ["Batch","of","images","to","captions","."]
code: def predict(self, imgs, bos, eos, max_caption_length):
      """Batch of images to captions."""
      imgs = Variable(imgs)
      img_feats = self.feat_extractor(imgs)
      captions = self.lang_model.predict(
          img_feats,
          bos=bos,
          eos=eos,
          max_caption_length=max_caption_length,
      )
      return captions
  
imports: import numpy
  import chainer
  from chainer import functions
  from chainer import initializers
  from chainer import links
  from chainer import reporter
  from chainer import Variable
label_desc: Use image node_id 4 for calling the ImageCaptionModel obj's underlying member method code with example usage: obj.predict(imgs, bos, eos, max_caption_length) and returns: captions