code: def upload_audio_files():
      """
      API Endpoint to upload audio files for inference.
  
      The uploaded files must be wav files, 16 KHz sample rate, mono-channel audio samples.
      """
      # Try to get one or more files from form
      try:
          f = request.files.getlist("file")
      except werkzeug.exceptions.BadRequestKeyError:
          f = None
  
      # If user did not select any file to upload, notify them.
      if f is None or len(f) == 0:
          toast = render_template(
              "toast_msg.html",
              toast_message="No file has been selected to upload !",
              timeout=2000,
          )
          result = render_template(
              "updates/upload_files_failed.html",
              pre_exec=toast,
              url=url_for("upload_audio_files"),
          )
          result = unescape(result)
          return result
  
      # temporary id to store data
      uuid = str(uuid4())
      data_store = os.path.join(app.config[f"UPLOAD_FOLDER"], uuid)
  
      # If the user attempt to upload another set of files without first transcribing them,
      # delete the old cache of files and create a new cache entirely
      _remove_older_files_if_exists()
  
      # Save each file into this unique cache
      for fn in f:
          filename = secure_filename(fn.filename)
          if not os.path.exists(data_store):
              os.makedirs(data_store)
  
          fn.save(os.path.join(data_store, filename))
          logging.info(f"Saving file : {fn.filename}")
  
      # Update user that N files were uploaded.
      msg = f"{len(f)} file(s) uploaded. Click to upload more !"
      toast = render_template(
          "toast_msg.html",
          toast_message=f"{len(f)} file(s) uploaded !",
          timeout=2000,
      )
      result = render_template(
          "updates/upload_files_successful.html",
          pre_exec=toast,
          msg=msg,
          url=url_for("upload_audio_files"),
      )
      result = unescape(result)
  
      result = make_response(result)
      result.set_cookie("uuid", uuid)
      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 3 for calling a global function with example usage: upload_audio_files() and returns: result, result