code: def test_make_distribution(self):
      # now building a sdist
      dist, cmd = self.get_cmd()
  
      # creating a gztar then a tar
      cmd.formats = ["gztar", "tar"]
      cmd.ensure_finalized()
      cmd.run()
  
      # making sure we have two files
      dist_folder = join(self.tmp_dir, "dist")
      result = os.listdir(dist_folder)
      result.sort()
      self.assertEqual(result, ["fake-1.0.tar", "fake-1.0.tar.gz"])
  
      os.remove(join(dist_folder, "fake-1.0.tar"))
      os.remove(join(dist_folder, "fake-1.0.tar.gz"))
  
      # now trying a tar then a gztar
      cmd.formats = ["tar", "gztar"]
  
      cmd.ensure_finalized()
      cmd.run()
  
      result = os.listdir(dist_folder)
      result.sort()
      self.assertEqual(result, ["fake-1.0.tar", "fake-1.0.tar.gz"])
  
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 5 for calling the SDistTestCase obj's underlying member method code with example usage: obj.test_make_distribution() without return types