code: def test_visualize_image_prototypes(mocker):
      """Test the `visualize_image_prototypes` function."""
      importances = {
          "prototype_importances": np.random.randint(2, 50, size=(10,)),
          "X_protos": np.random.randn(10, 2),
          "X_protos_ft": None,
      }
  
      m1 = mocker.patch(
          "alibi.prototypes.protoselect.compute_prototype_importances",
          return_value=importances,
      )
      m2 = mocker.patch("alibi.prototypes.protoselect._imscatterplot")
      visualize_image_prototypes(
          summary=None, trainset=None, reducer=lambda x: x
      )
      m1.assert_called_once()
      m2.assert_called_once()
  
imports: from copy import deepcopy
  import matplotlib
  import numpy
  import pytest
  from sklearn.datasets import make_classification
  from sklearn.model_selection import train_test_split
  from alibi.api.defaults import DEFAULT_DATA_PROTOSELECT, DEFAULT_META_PROTOSELECT
  from alibi.api.interfaces import Explanation
  from alibi.prototypes import ProtoSelect
  from alibi.prototypes.protoselect import _batch_preprocessing, _imscatterplot, compute_prototype_importances, cv_protoselect_euclidean, visualize_image_prototypes
  from alibi.utils.kernel import EuclideanDistance
label_desc: Use image node_id 10 for calling a global function with example usage: test_visualize_image_prototypes(mocker) without return types