code: def test_raw_validate_unrecognized_field(self):
      raw = {
          "metadata_version": "2.3",
          "name": "packaging",
          "version": "2023.0.0",
      }
  
      # Safety check.
      assert metadata.Metadata.from_raw(raw, validate=True)
  
      raw["dynamc"] = ["Obsoletes-Dist"]  # Misspelled; missing an "i".
  
      with pytest.raises(ExceptionGroup):
          metadata.Metadata.from_raw(raw, validate=True)
  
imports: import pathlib
  import pytest
  from packaging import metadata, requirements, specifiers, utils, version
  from packaging.metadata import ExceptionGroup
label_desc: Use image node_id 8 for calling the TestMetadata obj's underlying member method code with example usage: obj.test_raw_validate_unrecognized_field() without return types