class_docstr: This command is private and reserved for internal use of setuptools,
  users should rely on ``setuptools.build_meta`` APIs.
code: def finalize_options(self):
      dist = self.distribution
      project_dir = dist.src_root or os.curdir
      self.output_dir = Path(self.output_dir or project_dir)
  
      egg_info = self.reinitialize_command("egg_info")
      egg_info.egg_base = str(self.output_dir)
  
      if self.tag_date:
          egg_info.tag_date = self.tag_date
      else:
          self.tag_date = egg_info.tag_date
  
      if self.tag_build:
          egg_info.tag_build = self.tag_build
      else:
          self.tag_build = egg_info.tag_build
  
      egg_info.finalize_options()
      self.egg_info = egg_info
  
      name = _normalization.safer_name(dist.get_name())
      version = _normalization.safer_best_effort_version(
          dist.get_version()
      )
      self.name = f"{name}-{version}"
      self.dist_info_dir = os.path.join(
          self.output_dir, f"{self.name}.dist-info"
      )
  
file_path: catboost/contrib/python/setuptools/py3/setuptools/command/dist_info.py
imports: import os
  import shutil
  import sys
  from contextlib import contextmanager
  from distutils import log
  from distutils.core import Command
  from pathlib import Path
  from ..None import _normalization
label_desc: Use image node_id 2 for calling the dist_info obj's underlying member method code with example usage: obj.finalize_options() without return types