class_docstr: Resolves HTTP handles by requesting and reading their GCS location.
docstr: We expect a '303 See other' response.
  
  Fail on anything else.
  
  Args:
    request: Request to the ...?tf-hub-format=uncompressed URL.
  
  Returns:
    String containing the server response
  
  Raise a ValueError if
  - a HTTPError != 303 occurrs
  - urlopen does not raise an HTTPError (on 2xx responses)
docstr_tok: ["We","expect","a","'303","See","other","'","response",".","Fail","on","anything","else",".","Args",":","request",":","Request","to","the","...","?","tf-hub-format=uncompressed","URL",".","Returns",":","String","containing","the","server","response","Raise","a","ValueError","if","-","a","HTTPError","!","=","303","occurrs","-","urlopen","does","not","raise","an","HTTPError","(","on","2xx","responses",")"]
code: def _call_urlopen(self, request):
      """We expect a '303 See other' response.
  
      Fail on anything else.
  
      Args:
        request: Request to the ...?tf-hub-format=uncompressed URL.
  
      Returns:
        String containing the server response
  
      Raise a ValueError if
      - a HTTPError != 303 occurrs
      - urlopen does not raise an HTTPError (on 2xx responses)
      """
  
      def raise_on_unexpected_code(code):
          raise ValueError(
              "Expected 303 See other HTTP response but received code {}".format(
                  code
              )
          )
  
      try:
          response = super()._call_urlopen(request)
          raise_on_unexpected_code(response.code)
      except urllib.error.HTTPError as error:
          if error.code != 303:
              raise_on_unexpected_code(error.code)
          return error.read().decode()
  
file_path: hub/tensorflow_hub/uncompressed_module_resolver.py
imports: import urllib
  from tensorflow_hub import resolver
label_desc: Use image node_id 5 for calling the HttpUncompressedFileResolver obj's underlying member method code with example usage: obj._call_urlopen(request) and returns: error