code: def _load_plugins_itr(pgroup, safe=True):
      
      for res in pkg_resources.iter_entry_points(pgroup):
          try:
              yield res.load()
          except ImportError:
              if safe:
                  continue
              raise
docs: .. seealso:: the doc of :func:`load_plugins`