class_docstr: Test the config system.
class_docstr_tok: ["Test","the","config","system","."]
docstr: Test that scriptable options can be set from API.
code: def test_set_user_option_scriptable(self):
      """Test that scriptable options can be set from API."""
      # This is set in lib/tests/conftest.py to off
      self.assertEqual(True, config.get_option("client.displayEnabled"))
  
      try:
          # client.displayEnabled and client.caching can be set after run starts.
          config.set_user_option("client.displayEnabled", False)
          self.assertEqual(
              False, config.get_option("client.displayEnabled")
          )
      finally:
          # Restore original value
          config.set_user_option("client.displayEnabled", True)
  
imports: import copy
  import os
  import textwrap
  import unittest
  from unittest.mock import MagicMock, mock_open, patch
  import pytest
  from parameterized import parameterized
  from streamlit import config, env_util
  from streamlit.config_option import ConfigOption
  from streamlit.errors import StreamlitAPIException
label_desc: Use image node_id 3 for calling the ConfigTest obj's underlying member method code with example usage: obj.test_set_user_option_scriptable() without return types