docstr: Deprecated API.
code: def check_metadata(self):
      """Deprecated API."""
      warn(
          "distutils.command.sdist.check_metadata is deprecated, \
                use the check command instead",
          PendingDeprecationWarning,
      )
      check = self.distribution.get_command_obj("check")
      check.ensure_finalized()
      check.run()
  
imports: import os
  import sys
  from glob import glob
  from warnings import warn
  from ..core import Command
  from distutils import dir_util
  from distutils import file_util
  from distutils import archive_util
  from ..text_file import TextFile
  from ..filelist import FileList
  from distutils._log import log
  from ..util import convert_path
  from ..errors import DistutilsOptionError, DistutilsTemplateError
label_desc: Use image node_id 5 for calling the sdist obj's underlying member method code with example usage: obj.check_metadata() without return types