code: def test_get_config_raises_error_when_architecture_is_not_registered(
      self,
  ) -> None:
      registry = ArchitectureRegistry[str]("model")
  
      with pytest.raises(
          ValueError,
          match=r"^The registry of 'model' does not contain an architecture named 'foo'\.$",
      ):
          registry.get_config("foo")
  
imports: import pytest
  from fairseq2.models.utils.arch_registry import ArchitectureRegistry
label_desc: Use image node_id 4 for calling the TestArchitectureRegistry obj's underlying member method code with example usage: obj.test_get_config_raises_error_when_architecture_is_not_registered() without return types