class_docstr: A unittest class for testing Feature Collision attack.
class_docstr_tok: ["A","unittest","class","for","testing","Feature","Collision","attack","."]
code: def poison_dataset(classifier, x_clean, y_clean):
      x_poison = np.copy(x_clean)
      y_poison = np.copy(y_clean)
      base = np.expand_dims(x_clean[0], axis=0)
      target = np.expand_dims(x_clean[1], axis=0)
      feature_layer = classifier.layer_names[-1]
      attack = FeatureCollisionAttack(
          classifier, target, feature_layer, max_iter=1
      )
      attack, attack_label = attack.poison(base)
      x_poison = np.append(x_poison, attack, axis=0)
      y_poison = np.append(y_poison, attack_label, axis=0)
  
      return x_poison, y_poison
  
file_path: adversarial-robustness-toolbox/tests/attacks/test_feature_collision.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import unittest
  import numpy
  from art.attacks.poisoning.feature_collision_attack import FeatureCollisionAttack
  from tests.utils import TestBase, master_seed, get_image_classifier_kr
label_desc: Use image node_id 3 for calling the TestFeatureCollision obj's underlying member method code with example usage: obj.poison_dataset(classifier, x_clean, y_clean) and returns: x_poison,  y_poison