code: def test_parse_hookimpl_override():
      class MyPluginManager(PluginManager):
          def parse_hookimpl_opts(self, module_or_class, name):
              opts = PluginManager.parse_hookimpl_opts(
                  self, module_or_class, name
              )
              if opts is None:
                  if name.startswith("x1"):
                      opts = {}
              return opts
  
      class Plugin(object):
          def x1meth(self):
              pass
  
          @hookimpl(hookwrapper=True, tryfirst=True)
          def x1meth2(self):
              pass
  
      class Spec(object):
          @hookspec
          def x1meth(self):
              pass
  
          @hookspec
          def x1meth2(self):
              pass
  
      pm = MyPluginManager(hookspec.project_name)
      pm.register(Plugin())
      pm.add_hookspecs(Spec)
      assert not pm.hook.x1meth._nonwrappers[0].hookwrapper
      assert not pm.hook.x1meth._nonwrappers[0].tryfirst
      assert not pm.hook.x1meth._nonwrappers[0].trylast
      assert not pm.hook.x1meth._nonwrappers[0].optionalhook
  
      assert pm.hook.x1meth2._wrappers[0].tryfirst
      assert pm.hook.x1meth2._wrappers[0].hookwrapper
  
imports: import warnings
  import pytest
  from pluggy import PluginManager, HookimplMarker, HookspecMarker
label_desc: Use image node_id 1 for calling a global function with example usage: test_parse_hookimpl_override() and returns: opts