def METHOD_NAME(self, monkeypatch: MonkeyPatch, request: SubRequest) -> str:
    import_orig = builtins.__import__
    package = str(request.param)
    def mocked_import(name: str, *args: Any, **kwargs: Any) -> Any:
        if name == package:
            raise ImportError()
        return import_orig(name, *args, **kwargs)
    monkeypatch.setattr(builtins, "__import__", mocked_import)
    return package