code: def finalize_options(self):
      ei_cmd = self.ei_cmd = self.get_finalized_command("egg_info")
      self.egg_info = ei_cmd.egg_info
  
      if self.bdist_dir is None:
          bdist_base = self.get_finalized_command("bdist").bdist_base
          self.bdist_dir = os.path.join(bdist_base, "egg")
  
      if self.plat_name is None:
          from pkg_resources import get_build_platform
  
          self.plat_name = get_build_platform()
  
      self.set_undefined_options("bdist", ("dist_dir", "dist_dir"))
  
      if self.egg_output is None:
          # Compute filename of the output egg
          basename = ei_cmd._get_egg_basename(
              py_version=get_python_version(),
              platform=self.distribution.has_ext_modules()
              and self.plat_name,
          )
  
          self.egg_output = os.path.join(
              self.dist_dir, basename + ".egg"
          )
  
imports: from distutils.dir_util import remove_tree, mkpath
  from distutils import log
  from types import CodeType
  import sys
  import os
  import re
  import textwrap
  import marshal
  from setuptools.extension import Library
  from setuptools import Command
  from .._path import ensure_directory
  from sysconfig import get_path, get_python_version
label_desc: Use image node_id 2 for calling the bdist_egg obj's underlying member method code with example usage: obj.finalize_options() without return types