code: def finalize_options(self):
      if self.bdist_dir is None:
          bdist_base = self.get_finalized_command("bdist").bdist_base
          self.bdist_dir = os.path.join(bdist_base, "wininst")
      if not self.target_version:
          self.target_version = ""
      if not self.skip_build and self.distribution.has_ext_modules():
          short_version = get_python_version()
          if (
              self.target_version
              and self.target_version != short_version
          ):
              raise DistutilsOptionError(
                  "target version can only be %s, or the '--skip_build'"
                  " option must be specified" % (short_version,)
              )  # PLASTICITY
          self.target_version = short_version
  
      self.set_undefined_options("bdist", ("dist_dir", "dist_dir"))
  
      if self.install_script:
          for script in self.distribution.scripts:
              if self.install_script == os.path.basename(script):
                  break
          else:
              raise DistutilsOptionError(
                  "install_script '%s' not found in scripts"
                  % self.install_script
              )
  
file_path: magnitude/pymagnitude/third_party/_pysqlite/cross_bdist_wininst.py
imports: import sys, os, string
  from distutils.core import Command
  from distutils.util import get_platform
  from distutils.dir_util import create_tree, remove_tree
  from distutils.errors import *
  from distutils.sysconfig import get_python_version
  from distutils import log
label_desc: Use image node_id 2 for calling the bdist_wininst obj's underlying member method code with example usage: obj.finalize_options() without return types