code: def test_make_distribution_owner_group(self):
      # now building a sdist
      dist, cmd = self.get_cmd()
  
      # creating a gztar and specifying the owner+group
      cmd.formats = ["gztar"]
      cmd.owner = pwd.getpwuid(0)[0]
      cmd.group = grp.getgrgid(0)[0]
      cmd.ensure_finalized()
      cmd.run()
  
      # making sure we have the good rights
      archive_name = join(self.tmp_dir, "dist", "fake-1.0.tar.gz")
      archive = tarfile.open(archive_name)
      try:
          for member in archive.getmembers():
              self.assertEqual(member.uid, 0)
              self.assertEqual(member.gid, 0)
      finally:
          archive.close()
  
      # building a sdist again
      dist, cmd = self.get_cmd()
  
      # creating a gztar
      cmd.formats = ["gztar"]
      cmd.ensure_finalized()
      cmd.run()
  
      # making sure we have the good rights
      archive_name = join(self.tmp_dir, "dist", "fake-1.0.tar.gz")
      archive = tarfile.open(archive_name)
  
      # note that we are not testing the group ownership here
      # because, depending on the platforms and the container
      # rights (see #7408)
      try:
          for member in archive.getmembers():
              self.assertEqual(member.uid, os.getuid())
      finally:
          archive.close()
  
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 12 for calling the SDistTestCase obj's underlying member method code with example usage: obj.test_make_distribution_owner_group() without return types