code: def _get_capture_plugin(self):
          
          for plugin in self.config.plugins.plugins:
              if plugin.name == "capture":
                  return plugin
          return None
docs: :rtype: nose.plugins.capture.Capture