parameters: (self, options)
docstring: Do the pip version check if not disabled.
  
          This overrides the default behavior of not doing the check.
docstring_summary: Do the pip version check if not disabled.
docstring_tokens: Do the pip version check if not disabled .
function: def handle_pip_version_check(self, options):
          # type: (Values) -> None
          """
          Do the pip version check if not disabled.
  
          This overrides the default behavior of not doing the check.
          """
          # Make sure the index_group options are present.
          assert hasattr(options, 'no_index')
  
          if options.disable_pip_version_check or options.no_index:
              return
  
          # Otherwise, check if we're using the latest version of pip available.
          session = self._build_session(
              options,
              retries=0,
              timeout=min(5, options.timeout)
          )
          with session:
              pip_self_version_check(session, options)
function_tokens: def handle_pip_version_check ( self , options ) : # type: (Values) -> None # Make sure the index_group options are present. assert hasattr ( options , 'no_index' ) if options . disable_pip_version_check or options . no_index : return # Otherwise, check if we're using the latest version of pip available. session = self . _build_session ( options , retries = 0 , timeout = min ( 5 , options . timeout ) ) with session : pip_self_version_check ( session , options )