code: def test_to_dict():
      """Test dictionary representation of the configuration"""
      config = Configuration()
      config.add_option("test", option_type=str, default="voici_voila")
      config.nested = Configuration()
      config.nested.add_option("test2", option_type=str, default="zici")
  
      assert config.to_dict() == {
          "test": "voici_voila",
          "nested": {"test2": "zici"},
      }
  
      config.test = "hello"
      config.nested.test2 = "labas"
  
      assert config.to_dict() == {
          "test": "hello",
          "nested": {"test2": "labas"},
      }
  
imports: import argparse
  import logging
  import os
  import pytest
  import yaml
  from orion.core.io.config import Configuration, ConfigurationError
label_desc: Use image node_id 26 for calling a global function with example usage: test_to_dict() without return types