code: def test_skip_build(self):
      # bug #10946: bdist --skip-build should trickle down to subcommands
      dist = self.create_dist()[1]
      cmd = bdist(dist)
      cmd.skip_build = 1
      cmd.ensure_finalized()
      dist.command_obj["bdist"] = cmd
  
      names = ["bdist_dumb", "bdist_wininst"]
      # bdist_rpm does not support --skip-build
      if os.name == "nt":
          names.append("bdist_msi")
  
      for name in names:
          subcmd = cmd.get_finalized_command(name)
          self.assertTrue(
              subcmd.skip_build,
              "%s should take --skip-build from bdist" % name,
          )
  
file_path: catboost/contrib/tools/python/src/Lib/distutils/tests/test_bdist.py
imports: import os
  import unittest
  from test.test_support import run_unittest
  from distutils.command.bdist import bdist
  from distutils.tests import support
label_desc: Use image node_id 2 for calling the BuildTestCase obj's underlying member method code with example usage: obj.test_skip_build() without return types