class_docstr: This command checks the meta-data of the package.
      
class_docstr_tok: ["This","command","checks","the","meta-data","of","the","package","."]
docstr: Returns warnings when the provided data doesn't compile.
docstr_tok: ["Returns","warnings","when","the","provided","data","does","n'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 = Parser()
      settings = frontend.OptionParser(
          components=(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 = 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/tools/python3/src/Lib/distutils/command/check.py
imports: from distutils.core import Command
  from distutils.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