code: def _import_plugins(self) -> None:
          
          logger.debug('Importing plugins')
          self._pm = pluggy.PluginManager('sirbot')
          self._pm.add_hookspecs(hookspecs)
  
          for plugin in self.config['sirbot']['plugins']:
              try:
                  p = importlib.import_module(plugin)
              except (ModuleNotFoundError, ):
                  if os.getcwd() not in sys.path:
                      sys.path.append(os.getcwd())
                      p = importlib.import_module(plugin)
                  else:
                      raise
              self._pm.register(p)
docs: Import and register plugin in the plugin manager.
  
          The pluggy library is used as plugin manager.