class_docstr: This class implements the base class for all unit tests.
class_docstr_tok: ["This","class","implements","the","base","class","for","all","unit","tests","."]
code: def setUpClass(cls):
      master_seed(1234)
  
      cls.n_train = 1000
      cls.n_test = 100
      cls.batch_size = 16
  
      cls.create_image_dataset(n_train=cls.n_train, n_test=cls.n_test)
  
      (
          (x_train_iris, y_train_iris),
          (x_test_iris, y_test_iris),
          _,
          _,
      ) = load_dataset("iris")
  
      cls.x_train_iris = x_train_iris
      cls.y_train_iris = y_train_iris
      cls.x_test_iris = x_test_iris
      cls.y_test_iris = y_test_iris
  
      cls._x_train_iris_original = cls.x_train_iris.copy()
      cls._y_train_iris_original = cls.y_train_iris.copy()
      cls._x_test_iris_original = cls.x_test_iris.copy()
      cls._y_test_iris_original = cls.y_test_iris.copy()
  
      (
          (x_train_diabetes, y_train_diabetes),
          (x_test_diabetes, y_test_diabetes),
          _,
          _,
      ) = load_dataset("diabetes")
  
      cls.x_train_diabetes = x_train_diabetes
      cls.y_train_diabetes = y_train_diabetes
      cls.x_test_diabetes = x_test_diabetes
      cls.y_test_diabetes = y_test_diabetes
  
      cls._x_train_diabetes_original = cls.x_train_diabetes.copy()
      cls._y_train_diabetes_original = cls.y_train_diabetes.copy()
      cls._x_test_diabetes_original = cls.x_test_diabetes.copy()
      cls._y_test_diabetes_original = cls.y_test_diabetes.copy()
  
      # Filter warning for scipy, removed with scipy 1.4
      warnings.filterwarnings("ignore", ".*the output shape of zoom.*")
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import json
  import logging
  import os
  import pickle
  import time
  import unittest
  import warnings
  import sklearn
  import numpy
  from art.estimators.classification.tensorflow import TensorFlowV2Classifier
  from art.estimators.encoding.tensorflow import TensorFlowEncoder
  from art.estimators.generation.tensorflow import TensorFlowGenerator, TensorFlowV2Generator
  from art.estimators.gan.tensorflow import TensorFlowV2GAN
  from art.utils import load_dataset
label_desc: Use image node_id 1 for calling the TestBase obj's underlying member method code with example usage: obj.setUpClass(cls) without return types