code: def __init__(
      self, model, test_data, key, device, batch=100, max_length=100
  ):
      self.model = model
      self.test_data = test_data
      self.key = key
      self.batch = batch
      self.device = device
      self.max_length = max_length
  
imports: import argparse
  import datetime
  import io
  from nltk.translate import bleu_score
  import numpy
  import progressbar
  import six
  import chainer
  import chainer.functions
  import chainer.links
  from chainer import training
  from chainer.training import extensions
  import chainerx
label_desc: Use image node_id 1 to create a new CalculateBleu object from inherited base classes: chainer.training with example: obj = CalculateBleu(model, test_data, key, device, batch, max_length)