docstr: Test st.audio raises exception when sample_rate missing in case of valid
  numpy array.
docstr_tok: ["Test","st.audio","raises","exception","when","sample_rate","missing","in","case","of","valid","numpy","array","."]
code: def test_st_audio_missing_sample_rate_numpy_arr(self):
      """Test st.audio raises exception when sample_rate missing in case of valid
      numpy array."""
  
      valid_np_array = np.array([1, 2, 3, 4, 5])
  
      with self.assertRaises(StreamlitAPIException) as e:
          st.audio(valid_np_array)
  
      self.assertEqual(
          str(e.exception),
          "`sample_rate` must be specified when `data` is 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 4 for calling the AudioTest obj's underlying member method code with example usage: obj.test_st_audio_missing_sample_rate_numpy_arr() without return types