code: def test_check_metadata_deprecated(self):
      # makes sure make_metadata is deprecated
      dist, cmd = self.get_cmd()
      with check_warnings() as w:
          warnings.simplefilter("always")
          cmd.check_metadata()
          self.assertEqual(len(w.warnings), 1)
  
imports: import os
  import tarfile
  import unittest
  import warnings
  import zipfile
  from os.path import join
  from textwrap import dedent
  from test.test_support import captured_stdout, check_warnings, run_unittest
  from distutils.command.sdist import sdist, show_formats
  from distutils.core import Distribution
  from distutils.tests.test_config import PyPIRCCommandTestCase
  from distutils.errors import DistutilsOptionError
  from distutils.spawn import find_executable
  from distutils.log import WARN
  from distutils.filelist import FileList
  from distutils.archive_util import ARCHIVE_FORMATS
label_desc: Use image node_id 9 for calling the SDistTestCase obj's underlying member method code with example usage: obj.test_check_metadata_deprecated() without return types