code: def Map(rules):
      return routing.Map(
          [Rule(path, handler, *args) for path, handler, args, in rules]
      )
  
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 4 for calling a global function with example usage: Map(rules) and returns: routing