code: def test_generate_default(
      art_warning, fix_get_mnist_subset, image_dl_estimator
  ):
      try:
          classifier, _ = image_dl_estimator(from_logits=True)
  
          attack = AutoAttack(
              estimator=classifier,
              norm=np.inf,
              eps=0.3,
              eps_step=0.1,
              attacks=None,
              batch_size=32,
              estimator_orig=None,
          )
  
          (
              x_train_mnist,
              y_train_mnist,
              x_test_mnist,
              y_test_mnist,
          ) = fix_get_mnist_subset
  
          x_train_mnist_adv = attack.generate(
              x=x_train_mnist, y=y_train_mnist
          )
  
          assert np.mean(
              np.abs(x_train_mnist_adv - x_train_mnist)
          ) == pytest.approx(0.0292, abs=0.105)
          assert np.max(
              np.abs(x_train_mnist_adv - x_train_mnist)
          ) == pytest.approx(0.3, abs=0.05)
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/attacks/evasion/test_auto_attack.py
imports: import logging
  import pytest
  import numpy
  from art.attacks.evasion import AutoAttack
  from art.attacks.evasion.auto_projected_gradient_descent import AutoProjectedGradientDescent
  from art.attacks.evasion.deepfool import DeepFool
  from art.attacks.evasion.square_attack import SquareAttack
  from art.estimators.estimator import BaseEstimator
  from art.estimators.classification.classifier import ClassifierMixin
  from tests.attacks.utils import backend_test_classifier_type_check_fail
  from tests.utils import ARTTestException
label_desc: Use image node_id 2 for calling a global function with example usage: test_generate_default(art_warning, fix_get_mnist_subset, image_dl_estimator) without return types