class_docstr: This command checks the meta-data of the package.
docstr: Runs the command.
code: def run(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.")
  
file_path: catboost/contrib/python/setuptools/py3/setuptools/_distutils/command/check.py
imports: import contextlib
  from ..core import Command
  from ..errors import DistutilsSetupError
label_desc: Use image node_id 4 for calling the check obj's underlying member method code with example usage: obj.run() without return types