class_docstr: Test cases for the AdversarialTrainer class.
class_docstr_tok: ["Test","cases","for","the","AdversarialTrainer","class","."]
code: def setUpClass(cls):
      # MNIST
      (x_train, y_train), (x_test, y_test), _, _ = load_mnist()
      x_train, y_train, x_test, y_test = (
          x_train[:NB_TRAIN],
          y_train[:NB_TRAIN],
          x_test[:NB_TEST],
          y_test[:NB_TEST],
      )
      cls.mnist = ((x_train, y_train), (x_test, y_test))
  
      cls.classifier, _ = get_image_classifier_tf()
      cls.classifier_2, _ = get_image_classifier_tf()
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import unittest
  import numpy
  from art.attacks.evasion.fast_gradient import FastGradientMethod
  from art.attacks.evasion.deepfool import DeepFool
  from art.data_generators import DataGenerator
  from art.defences.trainer.adversarial_trainer import AdversarialTrainer
  from art.utils import load_mnist
  from tests.utils import master_seed, get_image_classifier_tf
label_desc: Use image node_id 1 for calling the TestAdversarialTrainer obj's underlying member method code with example usage: obj.setUpClass(cls) without return types