code: def test_set_invalid_subconfig_value_like_dict():
      """Test that deep keys cannot be set if subconfig does not exist"""
      config = Configuration()
      with pytest.raises(BaseException) as exc:
          config["sub.test"] = "1"
      assert "Configuration does not have an attribute 'sub'." in str(
          exc.value
      )
  
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 16 for calling a global function with example usage: test_set_invalid_subconfig_value_like_dict() without return types