code: def uninstall(*package_names):
      
      command = UninstallCommand()
      opts, args = command.parse_args(['--yes'] + list(package_names))
      command.run(opts, args)
docs: Uninstall one or more packages using the Python equivalent of ``pip uninstall --yes``.
  
      The package(s) to uninstall must be installed, otherwise pip will raise an
      ``UninstallationError``. You can check for installed packages using
      :func:`is_installed()`.
  
      :param package_names: The names of one or more Python packages (strings).