code: def test_metadata_check_option(self):
      # testing the `medata-check` option
      dist, cmd = self.get_cmd(metadata={})
  
      # this should raise some warnings !
      # with the `check` subcommand
      cmd.ensure_finalized()
      cmd.run()
      warnings = [
          msg
          for msg in self.get_logs(WARN)
          if msg.startswith("warning: check:")
      ]
      self.assertEqual(len(warnings), 2)
  
      # trying with a complete set of metadata
      self.clear_logs()
      dist, cmd = self.get_cmd()
      cmd.ensure_finalized()
      cmd.metadata_check = 0
      cmd.run()
      warnings = [
          msg
          for msg in self.get_logs(WARN)
          if msg.startswith("warning: check:")
      ]
      self.assertEqual(len(warnings), 0)
  
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 8 for calling the SDistTestCase obj's underlying member method code with example usage: obj.test_metadata_check_option() without return types