class_docstr: Test cases for the AdversarialTrainer class.
class_docstr_tok: ["Test","cases","for","the","AdversarialTrainer","class","."]
code: def test_excpetions(self):
      with self.assertRaises(ValueError):
          _ = AdversarialTrainer(self.classifier, "attack")
  
      with self.assertRaises(ValueError):
          attack = FastGradientMethod(self.classifier)
          _ = AdversarialTrainer(self.classifier, attack, ratio=1.5)
  
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 4 for calling the TestAdversarialTrainer obj's underlying member method code with example usage: obj.test_excpetions() without return types