code: def bumpversion(self, part, **kwargs):
          
          import bumpversion
  
          args = ['--verbose'] if self.verbose > 1 else []
          for k, v in kwargs.items():
              arg = "--{}".format(k.replace("_", "-"))
              if isinstance(v, bool):
                  if v is False:
                      continue
                  args.append(arg)
              else:
                  args.extend([arg, str(v)])
          args.append(part)
  
          log.debug(
              "$ bumpversion %s" % " ".join(a.replace(" ", "\\ ") for a in args))
  
          bumpversion.main(args)
docs: Run bump2version.main() with the specified arguments.