code: def test_errors(
      art_warning,
      tabular_dl_estimator,
      get_iris_dataset,
      image_data_generator,
  ):
      try:
          classifier = tabular_dl_estimator()
          not_classifier = image_data_generator()
          (x_train, y_train), (x_test, y_test) = get_iris_dataset
          with pytest.raises(ValueError):
              PDTP(not_classifier, classifier, x_train, y_train)
          with pytest.raises(ValueError):
              PDTP(classifier, not_classifier, x_train, y_train)
          with pytest.raises(ValueError):
              PDTP(
                  classifier,
                  classifier,
                  np.delete(x_train, 1, 1),
                  y_train,
              )
          with pytest.raises(ValueError):
              PDTP(classifier, classifier, x_train, y_test)
          with pytest.raises(ValueError):
              PDTP(
                  classifier,
                  classifier,
                  x_train,
                  y_train,
                  comparison_type="a",
              )
      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 10 for calling a global function with example usage: test_errors(art_warning, tabular_dl_estimator, get_iris_dataset, image_data_generator) without return types