code: def test_invalid_summary(self):
      meta = metadata.Metadata.from_raw(
          {"summary": "Hello\n    Again"}, validate=False
      )
  
      with pytest.raises(metadata.InvalidMetadata) as exc_info:
          meta.summary
      assert exc_info.value.field == "summary"
  
imports: import pathlib
  import pytest
  from packaging import metadata, requirements, specifiers, utils, version
  from packaging.metadata import ExceptionGroup
label_desc: Use image node_id 22 for calling the TestMetadata obj's underlying member method code with example usage: obj.test_invalid_summary() without return types