code: def test_plugin_getattr_raises_errors() -> None:
      """Pluggy must be able to handle plugins which raise weird exceptions
      when getattr() gets called (#11).
      """
  
      class DontTouchMe:
          def __getattr__(self, x):
              raise Exception("can't touch me")
  
      class Module:
          pass
  
      module = Module()
      module.x = DontTouchMe()  # type: ignore[attr-defined]
  
      pm = PluginManager(hookspec.project_name)
      # register() would raise an error
      pm.register(module, "donttouch")
      assert pm.get_plugin("donttouch") is module
  
file_path: catboost/contrib/python/pluggy/py3/tests/test_details.py
imports: import pytest
  from pluggy import HookimplMarker
  from pluggy import HookspecMarker
  from pluggy import PluginManager
label_desc: Use image node_id 3 for calling a global function with example usage: test_plugin_getattr_raises_errors() without return types