def METHOD_NAME(self):
    """Runs the command."""
    # perform the various tests
    if self.metadata:
        self.check_metadata()
    if self.restructuredtext:
        if 'docutils' in globals():
            try:
                self.check_restructuredtext()
            except TypeError as exc:
                raise DistutilsSetupError(str(exc))
        elif self.strict:
            raise DistutilsSetupError('The docutils package is needed.')
    # let's raise an error in strict mode, if we have at least
    # one warning
    if self.strict and self._warnings > 0:
        raise DistutilsSetupError('Please correct your package.')