class_docstr: Base class to store image batches.
  
  Subclasses of this class are used to store batches of images from the dataset
  or batches of adversarial images.
class_docstr_tok: ["Base","class","to","store","image","batches",".","Subclasses","of","this","class","are","used","to","store","batches","of","images","from","the","dataset","or","batches","of","adversarial","images","."]
docstr: Initialize ImageBatchesBase.
  
  Args:
    datastore_client: instance of the CompetitionDatastoreClient
    entity_kind_batches: Cloud Datastore entity kind which is used to store
      batches of images.
    entity_kind_images: Cloud Datastore entity kind which is used to store
      individual images.
docstr_tok: ["Initialize","ImageBatchesBase",".","Args",":","datastore_client",":","instance","of","the","CompetitionDatastoreClient","entity_kind_batches",":","Cloud","Datastore","entity","kind","which","is","used","to","store","batches","of","images",".","entity_kind_images",":","Cloud","Datastore","entity","kind","which","is","used","to","store","individual","images","."]
code: def __init__(
      self, datastore_client, entity_kind_batches, entity_kind_images
  ):
      """Initialize ImageBatchesBase.
  
      Args:
        datastore_client: instance of the CompetitionDatastoreClient
        entity_kind_batches: Cloud Datastore entity kind which is used to store
          batches of images.
        entity_kind_images: Cloud Datastore entity kind which is used to store
          individual images.
      """
      self._datastore_client = datastore_client
      self._entity_kind_batches = entity_kind_batches
      self._entity_kind_images = entity_kind_images
      # data is a dictionary with following structure:
      #  self._data[batch_id] = {
      #    'batch_k1': batch_v1,
      #    ...
      #    'batch_kN': batch_vN,
      #    'images': {
      #      image_id: { 'img_k1': img_v1, ... }
      #    }
      #  }
      self._data = {}
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  from io import BytesIO
  from io import StringIO
  import itertools
  import logging
  import os
  import zipfile
  from six import iteritems
  from six import iterkeys
  from six import itervalues
label_desc: Use image node_id 1 to create a new ImageBatchesBase object from inherited base classes: object with example: obj = ImageBatchesBase(datastore_client, entity_kind_batches, entity_kind_images)