class_docstr: Class which stores batches of adversarial images generated by attacks.
class_docstr_tok: ["Class","which","stores","batches","of","adversarial","images","generated","by","attacks","."]
docstr: Returns total number of all generated adversarial examples.
docstr_tok: ["Returns","total","number","of","all","generated","adversarial","examples","."]
code: def count_generated_adv_examples(self):
      """Returns total number of all generated adversarial examples."""
      result = {}
      for v in itervalues(self.data):
          s_id = v["submission_id"]
          result[s_id] = result.get(s_id, 0) + len(v["images"])
      return result
  
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 3 for calling the AversarialBatches obj's underlying member method code with example usage: obj.count_generated_adv_examples() and returns: result