code: def test_invalid_provides_extra(self):
      extras = ["pdf", "-Not-Valid", "ok"]
      meta = metadata.Metadata.from_raw(
          {"provides_extra": extras}, validate=False
      )
      self._invalid_with_cause(
          meta,
          "provides_extra",
          utils.InvalidName,
          field="provides-extra",
      )
  
imports: import pathlib
  import pytest
  from packaging import metadata, requirements, specifiers, utils, version
  from packaging.metadata import ExceptionGroup
label_desc: Use image node_id 33 for calling the TestMetadata obj's underlying member method code with example usage: obj.test_invalid_provides_extra() without return types