code: def test_membership_leakage_shapr_image(
      art_warning, image_dl_estimator, get_default_mnist_subset
  ):
      try:
          classifier, _ = image_dl_estimator()
          (x_train, y_train), (
              x_test,
              y_test,
          ) = get_default_mnist_subset
          leakage = SHAPr(classifier, x_train, y_train, x_test, y_test)
          logger.info(
              "Average SHAPr leakage: %.2f", (np.average(leakage))
          )
          logger.info("Max SHAPr leakage: %.2f", (np.max(leakage)))
          logger.info("Min SHAPr leakage: %.2f", (np.min(leakage)))
          assert leakage.shape[0] == x_train.shape[0]
          assert len(leakage.shape) == 1
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/metrics/privacy/test_membership_leakage.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import pytest
  import numpy
  import random
  from art.metrics import PDTP, SHAPr, ComparisonType
  from tests.utils import ARTTestException
label_desc: Use image node_id 3 for calling a global function with example usage: test_membership_leakage_shapr_image(art_warning, image_dl_estimator, get_default_mnist_subset) without return types