code: def test_is_package_with_extras_installed_raises_key_error() -> None:
      with pytest.raises(
          KeyError,
          match="'argilla' package does not provide 'invented' extra",
      ):
          is_package_with_extras_installed("argilla", ["invented"])
  
file_path: argilla/tests/unit/utils/test_dependency.py
imports: import importlib
  import sys
  from typing import Any, List
  import pytest
  from argilla.utils.dependency import is_package_with_extras_installed, require_dependencies, requires_dependencies
label_desc: Use image node_id 2 for calling a global function with example usage: test_is_package_with_extras_installed_raises_key_error() without return types