code: def main(port):
      collateral = os.getenv("COLLATERAL").split(",")
      df = os.getenv("DF").split(",")
      name = os.getenv("NAME").split(",")
      task = os.getenv("TASK")
      num_layers = int(os.getenv("NUM_LAYERS"))
  
      hostname = socket.gethostname()
      ip_address = socket.gethostbyname(hostname)
      model_names = (
          name if name and len(name) == len(collateral) else ""
      )
      Task = get_task(task, num_layers, model_names, collateral, df)
      app = appConfiguration.configureApp(Task)
      appConfiguration.printPageLink(hostname, port)
      app.server.run(
          debug=True, threaded=True, host=ip_address, port=int(port)
      )
  
imports: import os
  import socket
  import logging
  import argparse
  import appConfiguration
  from tasks import get_task
label_desc: Use image node_id 1 for calling a global function with example usage: main(port) without return types