code: def test_config():
      theme = Theme({"warning": "red"})
      config = theme.config
      assert "warning = red\n" in config
  
file_path: rich/tests/test_theme.py
imports: import io
  import os
  import tempfile
  import pytest
  from rich.style import Style
  from rich.theme import Theme, ThemeStack, ThemeStackError
label_desc: Use image node_id 2 for calling a global function with example usage: test_config() without return types