code: def backend_check_membership_probabilities(attack, dataset):
      (x_train, y_train), _ = dataset
  
      # infer attacked feature on remainder of data
      inferred_train_pred = attack.infer(x_train, y_train)
      inferred_train_prob = attack.infer(
          x_train, y_train, probabilities=True
      )
  
      # check accuracy
      backend_check_probabilities(
          inferred_train_pred, inferred_train_prob
      )
  
file_path: adversarial-robustness-toolbox/tests/attacks/inference/membership_inference/test_black_box_rule_based.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import pytest
  import numpy
  from art.attacks.inference.membership_inference.black_box_rule_based import MembershipInferenceBlackBoxRuleBased
  from art.estimators.estimator import BaseEstimator
  from art.estimators.classification.classifier import ClassifierMixin
  from tests.attacks.utils import backend_test_classifier_type_check_fail
  from tests.utils import ARTTestException
label_desc: Use image node_id 7 for calling a global function with example usage: backend_check_membership_probabilities(attack, dataset) without return types