class_docstr: Class which generates and stores classification batches.
  
  Each classification batch contains result of the classification of one
  batch of adversarial images.
class_docstr_tok: ["Class","which","generates","and","stores","classification","batches",".","Each","classification","batch","contains","result","of","the","classification","of","one","batch","of","adversarial","images","."]
docstr: Serializes data stored in this class.
docstr_tok: ["Serializes","data","stored","in","this","class","."]
code: def serialize(self, fobj):
      """Serializes data stored in this class."""
      pickle.dump(self._data, fobj)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import csv
  from io import BytesIO
  from io import StringIO
  import logging
  import os
  import pickle
  import time
  from six import iteritems
  from six import iterkeys
  from six import itervalues
  from six import PY3
label_desc: Use image node_id 2 for calling the ClassificationBatches obj's underlying member method code with example usage: obj.serialize(fobj) without return types