code: def _do_redirect(handler, location):
      handler.send_response(301)
      handler.send_header("Location", location)
      handler.end_headers()
  
imports: import os
  import socket
  import sys
  import threading
  from absl import flags
  import tensorflow
  from tensorflow_hub import resolver
label_desc: Use image node_id 1 for calling a global function with example usage: _do_redirect(handler, location) without return types