code: def main():
      """
      API Endpoint for ASR Service.
      """
      nemo_model_names, local_model_names = model_api.get_model_names()
      model_names = []
      model_names.extend(local_model_names)  # prioritize local models
      model_names.extend(
          nemo_model_names
      )  # attach all other pretrained models
  
      # page initializations
      result = render_template("main.html", model_names=model_names)
      result = make_response(result)
  
      # Reset cookies
      result.set_cookie(
          "model_name", "", expires=0
      )  # model name from pretrained model list
      result.set_cookie(
          "use_gpu", "", expires=0
      )  # flag to use gpu (if available)
      result.set_cookie("uuid", "", expires=0)  # session id
      return result
  
imports: import atexit
  import glob
  import os
  import shutil
  import time
  from html import unescape
  from uuid import uuid4
  import model_api
  import torch
  import werkzeug
  from flask import Flask, make_response, render_template, request, url_for
  from flask_cors import CORS
  from werkzeug.utils import secure_filename
  from nemo.utils import logging
label_desc: Use image node_id 8 for calling a global function with example usage: main() and returns: result