code: def test_non_image_data_error(art_warning, tabular_batch):
      x, y = tabular_batch
      backdoor = PoisoningAttackBackdoor(add_single_bd)
  
      try:
          attack = BadDetGlobalMisclassificationAttack(
              backdoor=backdoor
          )
  
          exc_msg = "Unrecognized input dimension. BadDet GMA can only be applied to image data."
          with pytest.raises(ValueError, match=exc_msg):
              _, _ = attack.poison(x, y)
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/attacks/poison/bad_det/test_bad_det_gma.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import os
  import numpy
  import pytest
  from art.attacks.poisoning import BadDetGlobalMisclassificationAttack, PoisoningAttackBackdoor
  from art.attacks.poisoning.perturbations import add_single_bd, add_pattern_bd, insert_image
  from tests.utils import ARTTestException
label_desc: Use image node_id 5 for calling a global function with example usage: test_non_image_data_error(art_warning, tabular_batch) without return types