class_docstr: Delete older distributions
code: def finalize_options(self):
      if self.match is None:
          raise DistutilsOptionError(
              "Must specify one or more (comma-separated) match patterns "
              "(e.g. '.zip' or '.egg')"
          )
      if self.keep is None:
          raise DistutilsOptionError(
              "Must specify number of files to keep"
          )
      try:
          self.keep = int(self.keep)
      except ValueError:
          raise DistutilsOptionError("--keep must be an integer")
      if isinstance(self.match, six.string_types):
          self.match = [
              convert_path(p.strip()) for p in self.match.split(",")
          ]
      self.set_undefined_options("bdist", ("dist_dir", "dist_dir"))
  
file_path: catboost/contrib/python/setuptools/py2/setuptools/command/rotate.py
imports: from distutils.util import convert_path
  from distutils import log
  from distutils.errors import DistutilsOptionError
  import os
  import shutil
  from setuptools.extern import six
  from setuptools import Command
label_desc: Use image node_id 2 for calling the rotate obj's underlying member method code with example usage: obj.finalize_options() without return types