code: def back_end_untargeted_images(
      attack, fix_get_mnist_subset, fix_framework
  ):
      (
          x_train_mnist,
          y_train_mnist,
          x_test_mnist,
          y_test_mnist,
      ) = fix_get_mnist_subset
  
      x_test_adv = attack.generate(x_test_mnist)
  
      check_adverse_example_x(x_test_adv, x_test_mnist)
  
      y_pred = np.argmax(attack.estimator.predict(x_test_mnist), axis=1)
      y_pred_adv = np.argmax(
          attack.estimator.predict(x_test_adv), axis=1
      )
      assert (y_pred != y_pred_adv).any()
  
      if fix_framework in ["keras"]:
          k.clear_session()
  
file_path: adversarial-robustness-toolbox/tests/attacks/utils.py
imports: import pytest
  import numpy
  import logging
  import keras.backend
  from art.utils import random_targets, get_labels_np_array
  from art.exceptions import EstimatorError
  from tests.utils import check_adverse_example_x, check_adverse_predicted_sample_y
label_desc: Use image node_id 8 for calling a global function with example usage: back_end_untargeted_images(attack, fix_get_mnist_subset, fix_framework) without return types