docstr: If page_icon == "random", we choose a random emoji.
docstr_tok: ["If","page_icon","==","``","random","''",",","we","choose","a","random","emoji","."]
code: def test_set_page_config_icon_random(self):
      """If page_icon == "random", we choose a random emoji."""
      st.set_page_config(page_icon="random")
      c = self.get_message_from_queue().page_config_changed
      self.assertIn(c.favicon, set(RANDOM_EMOJIS + ENG_EMOJIS))
      self.assertTrue(is_emoji(c.favicon))
  
imports: from unittest import mock
  from parameterized import param, parameterized
  import streamlit
  from streamlit.commands.page_config import ENG_EMOJIS, RANDOM_EMOJIS, PageIcon, valid_url
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.PageConfig_pb2 import PageConfig
  from streamlit.string_util import is_emoji
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 3 for calling the PageConfigTest obj's underlying member method code with example usage: obj.test_set_page_config_icon_random() without return types