code: def run_pip(initial_args):
      
      status_code = pip.main(initial_args)
  
      # Clear out the registrations in the pip "logger" singleton. Otherwise,
      # loggers keep getting appended to it with every run. Pip assumes only one
      # command invocation will happen per interpreter lifetime.
      logger.consumers = []
  
      if status_code:
          raise PipException(status_code)
docs: Delegate to pip the given args (starting with the subcommand), and raise
      ``PipException`` if something goes wrong.