class_docstr: This command checks the meta-data of the package.
docstr: Returns warnings when the provided data doesn't compile.
code: def _check_rst_data(self, data):
      """Returns warnings when the provided data doesn't compile."""
      # the include and csv_table directives need this to be a path
      source_path = self.distribution.script_name or "setup.py"
      parser = docutils.parsers.rst.Parser()
      settings = docutils.frontend.OptionParser(
          components=(docutils.parsers.rst.Parser,)
      ).get_default_values()
      settings.tab_width = 4
      settings.pep_references = None
      settings.rfc_references = None
      reporter = SilentReporter(
          source_path,
          settings.report_level,
          settings.halt_level,
          stream=settings.warning_stream,
          debug=settings.debug,
          encoding=settings.error_encoding,
          error_handler=settings.error_encoding_error_handler,
      )
  
      document = docutils.nodes.document(
          settings, reporter, source=source_path
      )
      document.note_source(source_path, -1)
      try:
          parser.parse(data, document)
      except AttributeError as e:
          reporter.messages.append(
              (-1, "Could not finish the parsing: %s." % e, "", {})
          )
  
      return reporter.messages
  
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 7 for calling the check obj's underlying member method code with example usage: obj._check_rst_data(data) and returns: reporter