class_docstr: This command checks the meta-data of the package.
docstr: Ensures that all required elements of meta-data are supplied.
  
  Required fields:
      name, version
  
  Warns if any are missing.
code: def check_metadata(self):
      """Ensures that all required elements of meta-data are supplied.
  
      Required fields:
          name, version
  
      Warns if any are missing.
      """
      metadata = self.distribution.metadata
  
      missing = []
      for attr in "name", "version":
          if not getattr(metadata, attr, None):
              missing.append(attr)
  
      if missing:
          self.warn(
              "missing required meta-data: %s" % ", ".join(missing)
          )
  
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 5 for calling the check obj's underlying member method code with example usage: obj.check_metadata() without return types