docstr: Test st.audio raises streamlit warning when sample_rate parameter provided,
  but data is not a numpy array.
docstr_tok: ["Test","st.audio","raises","streamlit","warning","when","sample_rate","parameter","provided",",","but","data","is","not","a","numpy","array","."]
code: def test_st_audio_sample_rate_raises_warning(self):
      """Test st.audio raises streamlit warning when sample_rate parameter provided,
      but data is not a numpy array."""
  
      fake_audio_data = "\x11\x22\x33\x44\x55\x66".encode("utf-8")
      sample_rate = 44100
  
      st.audio(fake_audio_data, sample_rate=sample_rate)
  
      c = self.get_delta_from_queue(-2).new_element.alert
      self.assertEqual(c.format, AlertProto.WARNING)
      self.assertEqual(
          c.body,
          "Warning: `sample_rate` will be ignored since data is not a numpy array.",
      )
  
imports: import io
  import os
  from io import BytesIO
  import numpy
  from parameterized import parameterized
  from scipy.io import wavfile
  import streamlit
  from streamlit.elements.media import _maybe_convert_to_wav_bytes
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.Alert_pb2 import Alert
  from streamlit.runtime.media_file_storage import MediaFileStorageError
  from streamlit.runtime.memory_media_file_storage import _calculate_file_id
  from streamlit.web.server.server import MEDIA_ENDPOINT
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 5 for calling the AudioTest obj's underlying member method code with example usage: obj.test_st_audio_sample_rate_raises_warning() without return types