code: def finalize_options(self):
      # have to finalize 'plat_name' before 'bdist_base'
      if self.plat_name is None:
          if self.skip_build:
              self.plat_name = get_platform()
          else:
              self.plat_name = self.get_finalized_command(
                  "build"
              ).plat_name
  
      # 'bdist_base' -- parent of per-built-distribution-format
      # temporary directories (eg. we'll probably have
      # "build/bdist.<plat>/dumb", "build/bdist.<plat>/rpm", etc.)
      if self.bdist_base is None:
          build_base = self.get_finalized_command("build").build_base
          self.bdist_base = os.path.join(
              build_base, "bdist." + self.plat_name
          )
  
      self.ensure_string_list("formats")
      if self.formats is None:
          try:
              self.formats = [self.default_format[os.name]]
          except KeyError:
              raise DistutilsPlatformError(
                  "don't know how to create built distributions "
                  "on platform %s" % os.name
              )
  
      if self.dist_dir is None:
          self.dist_dir = "dist"
  
file_path: catboost/contrib/python/setuptools/py3/setuptools/_distutils/command/bdist.py
imports: import os
  import warnings
  from ..core import Command
  from ..errors import DistutilsPlatformError, DistutilsOptionError
  from ..util import get_platform
label_desc: Use image node_id 2 for calling the bdist obj's underlying member method code with example usage: obj.finalize_options() without return types