code: def setUpClass(cls):
      cls.evaluator = GroundTruthEvaluator()
      cls.n_classes = 3
      cls.n_dp = 10
      cls.n_dp_mix = 5
  
      cls.is_clean_all_clean = [[] for _ in range(cls.n_classes)]
      cls.is_clean_all_poison = [[] for _ in range(cls.n_classes)]
      cls.is_clean_mixed = [[] for _ in range(cls.n_classes)]
      cls.is_clean_comp_mix = [[] for _ in range(cls.n_classes)]
  
      for i in range(cls.n_classes):
          cls.is_clean_all_clean[i] = [1] * cls.n_dp
          cls.is_clean_all_poison[i] = [0] * cls.n_dp
          cls.is_clean_mixed[i] = [1, 0, 0, 1, 0, 1, 1, 1, 0, 0]
          cls.is_clean_comp_mix[i] = [0, 1, 1, 0, 1, 0, 0, 0, 1, 1]
  
file_path: adversarial-robustness-toolbox/tests/defences/detector/poison/test_ground_truth_evaluator.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import json
  import logging
  import pprint
  import unittest
  from art.defences.detector.poison import GroundTruthEvaluator
  from tests.utils import master_seed
label_desc: Use image node_id 2 for calling the TestGroundTruth obj's underlying member method code with example usage: obj.setUpClass(cls) without return types