code: def get_pip_options(args=[], sources=None, pip_command=None):
      
  
      if not pip_command:
          pip_command = get_pip_command()
      if not sources:
          sources = [
              {"url": "https://pypi.org/simple", "name": "pypi", "verify_ssl": True}
          ]
      _ensure_dir(CACHE_DIR)
      pip_args = args
      pip_args = prepare_pip_source_args(sources, pip_args)
      pip_options, _ = pip_command.parser.parse_args(pip_args)
      pip_options.cache_dir = CACHE_DIR
      return pip_options
docs: Build a pip command from a list of sources
  
      :param args: positional arguments passed through to the pip parser
      :param sources: A list of pipfile-formatted sources, defaults to None
      :param sources: list[dict], optional
      :param pip_command: A pre-built pip command instance
      :type pip_command: :class:`~pip._internal.cli.base_command.Command`
      :return: An instance of pip_options using the supplied arguments plus sane defaults
      :rtype: :class:`~pip._internal.cli.cmdoptions`