code: def test_from_email_validate(self):
      with pytest.raises(ExceptionGroup):
          # Lacking all required fields.
          metadata.Metadata.from_email("Name: packaging", 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 4 for calling the TestMetadata obj's underlying member method code with example usage: obj.test_from_email_validate() without return types