code: def test_config_getattr_default(config):
      default_value = config.get("a", 1)
      assert default_value == 1
  
      with pytest.raises(
          AttributeError, match="object has no attribute 'a'"
      ):
          _ = config.a
  
file_path: wandb/tests/pytest_tests/unit_tests/test_wandb_config.py
imports: import pytest
  import yaml
  from wandb import wandb_sdk
label_desc: Use image node_id 15 for calling a global function with example usage: test_config_getattr_default(config) without return types