docs: def load_plugins(self, plugins_package):
          ''' Load plugins from `plugins_package` module. '''
          try:
              # Resolve directory in the filesystem
              plugin_dir = find_spec(plugins_package).submodule_search_locations[0]
          except ImportError:
              logger.error(
                  "Could not load plugins package '%(pkg)s'", {'pkg': plugins_package}
              )
              return
  
          for module_path in self._get_plugin_module_paths(plugin_dir):
              # Load the module dynamically
              spec = find_spec('{}.{}'.format(plugins_package, module_path))
              m = module_from_spec(spec)
              spec.loader.exec_module(m)
  
              # Get classes from module and extract the plugin classes
              classes = inspect.getmembers(m, predicate=inspect.isclass)
              for _, klass in classes:
                  # Avoid imports processing
                  if klass.__module__ != spec.name:
                      continue
  
                  # Avoid classes not ending in Plugin
                  if not klass.__name__.endswith('Plugin'):
                      continue
  
                  instance = klass()
                  if self._is_plugin_ok(instance):
                      self.plugins.add(instance)