def _GetServerAndVersionFromRequest(self, request, request_id):
    server, dispatcher = self._GetServerFromRequest(request, request_id)
    if request.has_version():
      version = request.version()
    else:
      version = self.request_data.get_version(request_id)
      if version not in dispatcher.get_versions(server):
        version = dispatcher.get_default_version(server)
    return server, version, dispatcher
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/servers/servers_stub.py/ServersServiceStub._GetServerAndVersionFromRequest/original