code: def test_required_fields(self):
      meta = metadata.Metadata.from_raw(_RAW_EXAMPLE)
  
      assert meta.metadata_version == _RAW_EXAMPLE["metadata_version"]
  
imports: import pathlib
  import pytest
  from packaging import metadata, requirements, specifiers, utils, version
  from packaging.metadata import ExceptionGroup
label_desc: Use image node_id 6 for calling the TestMetadata obj's underlying member method code with example usage: obj.test_required_fields() without return types