code: def test_sample_rate_error(art_warning):
      try:
          exc_msg = "Sample rate be must a positive integer."
          with pytest.raises(ValueError, match=exc_msg):
              Mp3Compression(sample_rate=0)
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/defences/preprocessor/test_mp3_compression.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from art.defences.preprocessor import Mp3Compression
  from tests.utils import ARTTestException
label_desc: Use image node_id 2 for calling a global function with example usage: test_sample_rate_error(art_warning) without return types