code: def _store_model(nemo_model_file):
      """
      Preserve the model supplied by user into permanent cache
      This cache needs to be manually deleted (if run locally), or gets deleted automatically
      (when the container gets shutdown / killed).
  
      Args:
          nemo_model_file: User path to .nemo checkpoint.
  
      Returns:
          A file name (with a .nemo) at the end - to signify this is an uploaded checkpoint.
      """
      filename = secure_filename(nemo_model_file.filename)
      file_basename = os.path.basename(filename)
      model_dir = os.path.splitext(file_basename)[0]
  
      model_store = os.path.join("models", model_dir)
      if not os.path.exists(model_store):
          os.makedirs(model_store)
  
      # upload model
      model_path = os.path.join(model_store, filename)
      nemo_model_file.save(model_path)
      return file_basename
  
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 2 for calling a global function with example usage: _store_model(nemo_model_file) and returns: file_basename