class_docstr: We test the ability to turn on and off the spinner with the show_spinner
  option by inspecting the report queue.
docstr: If the show_spinner flag is set, there should be one element in the
  report queue.
docstr_tok: ["If","the","show_spinner","flag","is","set",",","there","should","be","one","element","in","the","report","queue","."]
code: def test_with_spinner(self):
      """If the show_spinner flag is set, there should be one element in the
      report queue.
      """
      function_with_spinner()
      self.assertFalse(self.forward_msg_queue.is_empty())
  
file_path: streamlit/lib/tests/streamlit/elements/cache_spinner_test.py
imports: from unittest.mock import Mock, patch
  import streamlit
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 1 for calling the CacheSpinnerTest obj's underlying member method code with example usage: obj.test_with_spinner() without return types