code: def test_rule_based_tabular(
      art_warning, get_iris_dataset, tabular_dl_estimator_for_attack
  ):
      try:
          classifier = tabular_dl_estimator_for_attack(
              MembershipInferenceBlackBoxRuleBased
          )
          attack = MembershipInferenceBlackBoxRuleBased(classifier)
          backend_check_membership_accuracy_no_fit(
              attack, get_iris_dataset, 0.06
          )
      except ARTTestException as e:
          art_warning(e)
  
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 2 for calling a global function with example usage: test_rule_based_tabular(art_warning, get_iris_dataset, tabular_dl_estimator_for_attack) without return types