code: def load_plugins(group='metrics.plugin.10'):
      
      # on using entrypoints:
      # http://stackoverflow.com/questions/774824/explain-python-entry-points
      file_processors = []
      build_processors = []
      for ep in pkg_resources.iter_entry_points(group, name=None):
          log.debug('loading \'%s\'', ep)
          plugin = ep.load()  # load the plugin
          if hasattr(plugin, 'get_file_processors'):
              file_processors.extend(plugin.get_file_processors())
          if hasattr(plugin, 'get_build_processors'):
              build_processors.extend(plugin.get_build_processors())
      return file_processors, build_processors
docs: Load and installed metrics plugins.