code: def test_invalid_metadata_version(self, version):
      meta = metadata.Metadata.from_raw(
          {"metadata_version": version}, validate=False
      )
  
      with pytest.raises(metadata.InvalidMetadata):
          meta.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 17 for calling the TestMetadata obj's underlying member method code with example usage: obj.test_invalid_metadata_version(version) without return types