code: def test_obsoletes(self):
      attrs = {
          "name": "package",
          "version": "1.0",
          "obsoletes": ["other", "another (<1.0)"],
      }
      dist = Distribution(attrs)
      self.assertEqual(
          dist.metadata.get_obsoletes(), ["other", "another (<1.0)"]
      )
      self.assertEqual(
          dist.get_obsoletes(), ["other", "another (<1.0)"]
      )
      meta = self.format_metadata(dist)
      self.assertIn("Metadata-Version: 1.1", meta)
      self.assertNotIn("provides:", meta.lower())
      self.assertNotIn("requires:", meta.lower())
      self.assertIn("Obsoletes: other", meta)
      self.assertIn("Obsoletes: another (<1.0)", meta)
  
imports: import os
  import StringIO
  import sys
  import unittest
  import warnings
  import textwrap
  from distutils.dist import Distribution, fix_help_options
  from distutils.cmd import Command
  import distutils.dist
  from test.test_support import TESTFN, captured_stdout, run_unittest, unlink
  from distutils.tests import support
  from distutils import log
label_desc: Use image node_id 11 for calling the MetadataTestCase obj's underlying member method code with example usage: obj.test_obsoletes() without return types