code: def test_check_metadata_deprecated(self):
      # makes sure make_metadata is deprecated
      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 unittest
  import getpass
  import urllib2
  import warnings
  from test.test_support import check_warnings, run_unittest
  from distutils.command import register
  from distutils.command.register import register
  from distutils.errors import DistutilsSetupError
  from distutils.tests.test_config import PyPIRCCommandTestCase
label_desc: Use image node_id 10 for calling the RegisterTestCase obj's underlying member method code with example usage: obj.test_check_metadata_deprecated() without return types