def main(args):
  signal.signal(signal.SIGINT, signal.SIG_DFL)  # Exit on Ctrl-C

  argparser = argparse.ArgumentParser()
  argparser.add_argument('-p', '--port', default=SERVER_PORT, type=int,
                         help='Port the web server should listen on.')
  parsed_args = argparser.parse_args(args[1:])
  server_port = parsed_args.port

  server = None
  try:
    server = ThreadedHTTPServer(
        ('', server_port), LabDeviceProxyRequestHandler)
    server.serve_forever(poll_interval=0.5)
  finally:
    if server:
      server.shutdown()
Initialises the object representing the node with the given id.
dataset/ETHPy150Open google/lab_device_proxy/lab_device_proxy_server.py/main--crossover with--dataset/ETHPy150Open hpk42/p4p/friendsecure/node.py/Node.__init__