code: def test_blackbox_existing_predictions(
      art_warning, get_mnist_dataset
  ):
      try:
          _, (x_test, y_test) = get_mnist_dataset
  
          limited_x_test = x_test[:500]
          limited_y_test = y_test[:500]
  
          bb = BlackBoxClassifier(
              (limited_x_test, limited_y_test),
              (28, 28, 1),
              10,
              clip_values=(0, 255),
          )
          assert np.array_equal(
              bb.predict(limited_x_test), limited_y_test
          )
  
          with pytest.raises(ValueError):
              bb.predict(x_test[:600])
  
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/estimators/classification/test_blackbox_existing_predictions.py
imports: import pytest
  import numpy
  from art.estimators.classification.blackbox import BlackBoxClassifierNeuralNetwork, BlackBoxClassifier
  from tests.utils import ARTTestException
label_desc: Use image node_id 1 for calling a global function with example usage: test_blackbox_existing_predictions(art_warning, get_mnist_dataset) without return types