code: def test_reject_prefixed_module(pm):
      """Verify that a module type attribute that contains the project
      prefix in its name (in this case `'example_*'` isn't collected
      when registering a module which imports it.
      """
      pm._implprefix = "example"
      conftest = types.ModuleType("conftest")
      src = """
  def example_hook():
      pass
  """
      exec(src, conftest.__dict__)
      conftest.example_blah = types.ModuleType("example_blah")
      with pytest.deprecated_call():
          name = pm.register(conftest)
      assert name == "conftest"
      assert getattr(pm.hook, "example_blah", None) is None
      assert getattr(
          pm.hook, "example_hook", None
      )  # conftest.example_hook should be collected
      with pytest.deprecated_call():
          assert (
              pm.parse_hookimpl_opts(conftest, "example_blah") is None
          )
          assert pm.parse_hookimpl_opts(conftest, "example_hook") == {}
  
imports: import pytest
  import types
  from pluggy import PluginManager, PluginValidationError, HookCallError, HookimplMarker, HookspecMarker
  from pluggy.manager import importlib_metadata
label_desc: Use image node_id 20 for calling a global function with example usage: test_reject_prefixed_module(pm) without return types