class_docstr: A unittest class for testing the GRAPHITE attack.
class_docstr_tok: ["A","unittest","class","for","testing","the","GRAPHITE","attack","."]
code: def setUpClass(cls):
      master_seed(seed=1234, set_tensorflow=True, set_torch=True)
      super().setUpClass()
  
      cls.n_test = 2
      cls.x_test_init_mnist = cls.x_test_mnist[1 : cls.n_test + 1]
      cls.y_test_init_mnist = cls.y_test_mnist[1 : cls.n_test + 1]
      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 import GRAPHITEBlackbox, GRAPHITEWhiteboxPyTorch
  from art.estimators.estimator import BaseEstimator
  from art.estimators.classification import ClassifierMixin
  from tests.utils import TestBase
  from tests.utils import get_image_classifier_tf, get_image_classifier_kr, get_image_classifier_pt
  from tests.utils import master_seed
  from tests.attacks.utils import backend_test_classifier_type_check_fail
label_desc: Use image node_id 1 for calling the TestGRAPHITE obj's underlying member method code with example usage: obj.setUpClass(cls) without return types