code: def backend_test_classifier_type_check_fail(
      attack, classifier_expected_list=[], classifier=None, **kwargs
  ):
      assert len(classifier_expected_list) == len(
          attack._estimator_requirements
      )
  
      for cls in classifier_expected_list:
          assert cls in classifier_expected_list
  
      for cls in attack._estimator_requirements:
          assert cls in classifier_expected_list
  
      # Use a useless test classifier to test basic classifier properties
      class ClassifierNoAPI:
          pass
  
      classifier = ClassifierNoAPI
  
      with pytest.raises(EstimatorError) as exception:
          _ = attack(classifier, **kwargs)
  
      for classifier_expected in classifier_expected_list:
          assert (
              classifier_expected in exception.value.class_expected_list
          )
  
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 6 for calling a global function with example usage: backend_test_classifier_type_check_fail(attack, classifier_expected_list, classifier) without return types