code: def test_anchor_image_fails_bad_predictor_return_type():
      """
      In this test `image_shape` is specified correctly, but the predictor returns the wrong type.
      """
      with pytest.raises(PredictorReturnTypeError):
          explainer = AnchorImage(
              bad_predictor, image_shape=(28, 28, 1)
          )
  
file_path: alibi/alibi/explainers/tests/test_anchor_image.py
imports: import pytest
  from pytest_lazyfixture import lazy_fixture
  import numpy
  import tensorflow
  import torch
  from alibi.api.defaults import DEFAULT_META_ANCHOR, DEFAULT_DATA_ANCHOR_IMG
  from alibi.exceptions import PredictorCallError, PredictorReturnTypeError
  from alibi.explainers.anchors.anchor_image import AnchorImage, AnchorImageSampler, scale_image
label_desc: Use image node_id 8 for calling a global function with example usage: test_anchor_image_fails_bad_predictor_return_type() without return types