code: def test_add_to_structured_config(
      self, hydra_restore_singletons: Any
  ) -> None:
      @dataclass
      class Config:
          a: int = 10
  
      ConfigStore.instance().store(
          name="config", node=Config, package="nested"
      )
  
      assert compose("config", overrides=["+nested.b=20"]) == {
          "nested": {"a": 10, "b": 20}
      }
  
      assert compose(
          "config", overrides=["++nested.a=30", "++nested.b=20"]
      ) == {"nested": {"a": 30, "b": 20}}
  
      assert compose("config", overrides=["+nested.b.c=20"]) == {
          "nested": {"a": 10, "b": {"c": 20}}
      }
  
imports: import re
  import subprocess
  import sys
  from dataclasses import dataclass, field
  from enum import Enum
  from pathlib import Path
  from textwrap import dedent
  from typing import Any, Dict, List, Optional
  from omegaconf import MISSING, OmegaConf
  from pytest import fixture, mark, param, raises, warns
  from hydra import __version__, compose, initialize, initialize_config_dir, initialize_config_module, version
  from hydra._internal.config_search_path_impl import ConfigSearchPathImpl
  from hydra.core.config_search_path import SearchPathQuery
  from hydra.core.config_store import ConfigStore
  from hydra.core.global_hydra import GlobalHydra
  from hydra.errors import ConfigCompositionException, HydraException
  from hydra.test_utils.test_utils import chdir_hydra_root
label_desc: Use image node_id 4 for calling the TestAdd obj's underlying member method code with example usage: obj.test_add_to_structured_config(hydra_restore_singletons) without return types