class_docstr: Core :py:class:`.PluginManager` class which manages registration
  of plugin objects and 1:N hook calling.
  
  You can register new hooks by calling :py:meth:`add_hookspecs(module_or_class)
  <.PluginManager.add_hookspecs>`.
  You can register plugin objects (which contain hooks) by calling
  :py:meth:`register(plugin) <.PluginManager.register>`.  The :py:class:`.PluginManager`
  is initialized with a prefix that is searched for in the names of the dict
  of registered plugin objects.
  
  For debugging purposes you can call :py:meth:`.PluginManager.enable_tracing`
  which will subsequently send debug information to the trace helper.
docstr: Load modules from querying the specified setuptools ``group``.
  
  :param str group: entry point group to load plugins
  :param str name: if given, loads only plugins with the given ``name``.
  :rtype: int
  :return: return the number of loaded plugins by this call.
docstr_tok: ["Load","modules","from","querying","the","specified","setuptools","``","group","``",".",":","param","str","group",":","entry","point","group","to","load","plugins",":","param","str","name",":","if","given",",","loads","only","plugins","with","the","given","``","name","``",".",":","rtype",":","int",":","return",":","return","the","number","of","loaded","plugins","by","this","call","."]
code: def load_setuptools_entrypoints(self, group, name=None):
      """Load modules from querying the specified setuptools ``group``.
  
      :param str group: entry point group to load plugins
      :param str name: if given, loads only plugins with the given ``name``.
      :rtype: int
      :return: return the number of loaded plugins by this call.
      """
      count = 0
      for dist in importlib_metadata.distributions():
          for ep in dist.entry_points:
              if (
                  ep.group != group
                  or (name is not None and ep.name != name)
                  # already registered
                  or self.get_plugin(ep.name)
                  or self.is_blocked(ep.name)
              ):
                  continue
              plugin = ep.load()
              self.register(plugin, name=ep.name)
              self._plugin_distinfo.append((plugin, DistFacade(dist)))
              count += 1
      return count
  
imports: import inspect
  import sys
  from .None import _tracing
  from .callers import _Result
  from .hooks import HookImpl, _HookRelay, _HookCaller, normalize_hookimpl_opts
  import warnings
label_desc: Use image node_id 18 for calling the PluginManager obj's underlying member method code with example usage: obj.load_setuptools_entrypoints(group, name) and returns: count