class_docstr: A unittest class for testing the ElasticNet attack.
class_docstr_tok: ["A","unittest","class","for","testing","the","ElasticNet","attack","."]
code: def setUpClass(cls):
      master_seed(seed=1234)
      super().setUpClass()
  
      cls.n_train = 500
      cls.n_test = 10
      cls.x_train_mnist = cls.x_train_mnist[0 : cls.n_train]
      cls.y_train_mnist = cls.y_train_mnist[0 : cls.n_train]
      cls.x_test_mnist = cls.x_test_mnist[0 : cls.n_test]
      cls.y_test_mnist = cls.y_test_mnist[0 : cls.n_test]
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import unittest
  import keras.backend
  import numpy
  from art.attacks.evasion.elastic_net import ElasticNet
  from art.estimators.estimator import BaseEstimator
  from art.estimators.classification.classifier import ClassGradientsMixin
  from art.estimators.classification.keras import KerasClassifier
  from art.utils import random_targets, to_categorical
  from tests.attacks.utils import backend_test_classifier_type_check_fail
  from tests.utils import TestBase, get_image_classifier_kr, get_image_classifier_pt, get_image_classifier_tf, get_tabular_classifier_kr, get_tabular_classifier_pt, get_tabular_classifier_tf, master_seed
label_desc: Use image node_id 1 for calling the TestElasticNet obj's underlying member method code with example usage: obj.setUpClass(cls) without return types