class_docstr: Test st.help.
class_docstr_tok: ["Test","st.help","."]
docstr: Test Streamlit DeltaGenerator function.
docstr_tok: ["Test","Streamlit","DeltaGenerator","function","."]
code: def test_deltagenerator_func(self):
      """Test Streamlit DeltaGenerator function."""
  
      with patch_varname_getter():
          st.help(st.audio)
  
      ds = self.get_delta_from_queue().new_element.doc_string
      self.assertEqual("st.audio", ds.name)
      self.assertEqual("method", ds.type)
  
      if sys.version_info < (3, 9):
          # Python < 3.9 represents the signature slightly differently
          signature = (
              "(data: Union[str, bytes, _io.BytesIO, io.RawIOBase, "
              "_io.BufferedReader, ForwardRef('npt.NDArray[Any]'), NoneType], "
              "format: str = 'audio/wav', start_time: int = 0, *, "
              "sample_rate: Union[int, NoneType] = None) -> 'DeltaGenerator'"
          )
      else:
          signature = (
              "(data: Union[str, bytes, _io.BytesIO, io.RawIOBase, "
              "_io.BufferedReader, ForwardRef('npt.NDArray[Any]'), NoneType], "
              "format: str = 'audio/wav', start_time: int = 0, *, "
              "sample_rate: Optional[int] = None) -> 'DeltaGenerator'"
          )
  
      self.assertEqual(
          f"streamlit.delta_generator.MediaMixin.audio{signature}",
          ds.value,
      )
      self.assertTrue(
          ds.doc_string.startswith("Display an audio player")
      )
  
imports: import inspect
  import sys
  import unittest
  from unittest.mock import patch
  import numpy
  import pytest
  import streamlit
  from streamlit.elements.doc_string import _get_variable_name_from_code_str
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 5 for calling the StHelpTest obj's underlying member method code with example usage: obj.test_deltagenerator_func() without return types