code: def main():
      global BACKEND_PORT
  
      """ Main function that parses arguments and opens fe+be."""
      parser = argparse.ArgumentParser(
          description="Open frontend and backend of the auptimizer dashboard"
      )
      parser.add_argument(
          "--path",
          type=str,
          dest="path",
          default=None,
          help="Path of the sqlite db file.",
      )
      parser.add_argument(
          "--port",
          type=int,
          dest="port",
          help="Port for frontend. Leave blank for backend only.",
      )
      parser.add_argument(
          "--backend_port",
          type=int,
          dest="backend_port",
          help="Port for the backend. Optional, for easier debugging.",
      )
  
      args = parser.parse_args()
  
      BACKEND_PORT = get_available_port()
  
      if args.backend_port is not None:
          BACKEND_PORT = args.backend_port
  
      if args.port is None:
          args.frontend = False
      else:
          args.frontend = True
          print("Dashboard started on 0.0.0.0:{}".format(args.port))
          print("To exit press CTRL+C...")
  
      return start_servers(args.path, args.port, args.frontend)
  
imports: import os
  import sys
  import shutil
  import logging
  import argparse
  import subprocess
  import threading
  import requests
  import re
  import cgi
  import json
  import aup.RestAPI.server
  from http.server import SimpleHTTPRequestHandler, HTTPServer
  from ..utils import get_available_port
label_desc: Use image node_id 4 for calling a global function with example usage: main() and returns: start_servers