code: def make_server(host, port, app, logging=True):
      if host is None:
          raise RuntimeError("host cannot be None")
      if port is None:
          raise RuntimeError("port cannot be None")
      if logging:
          request_handler = serving.WSGIRequestHandler
      else:
          request_handler = QuietRequestHandler
      try:
          return serving.make_server(
              host,
              port,
              app,
              threaded=True,
              request_handler=request_handler,
          )
      except socket.error as e:
          if host:
              raise
          log.debug(
              "error starting server on %s:%s (%s), trying IPv6 default host '::'",
              host,
              port,
              e,
          )
          return serving.make_server("::", port, app, threaded=True)
  
imports: import io
  import json
  import logging
  import socket
  from werkzeug import routing
  from werkzeug import serving
  from werkzeug import exceptions
  from werkzeug.middleware.shared_data import SharedDataMiddleware
  from werkzeug.wrappers import Request, Response
label_desc: Use image node_id 1 for calling a global function with example usage: make_server(host, port, app, logging) and returns: serving, serving