code: def load_collectors_from_entry_point(path):
      
      collectors = {}
      for ep in pkg_resources.iter_entry_points(path):
          try:
              mod = ep.load()
          except Exception:
              logger.error('Failed to import entry_point: %s. %s',
                           ep.name,
                           traceback.format_exc())
          else:
              collectors.update(get_collectors_from_module(mod))
      return collectors
docs: Load collectors that were installed into an entry_point.