code: def pre_convert(model, device, token, local_model_path):
      """
      align the input options from minimal UI with standard Web UI
      """
      # now we only support Stable Diffusion v2.1-base so just depends on device
      if device == "CPU FP32":
          result = f"{model}/JIT"
      elif device == "CPU/iGPU FP16":
          result = f"{model}/OpenVINO FP16 iGPU"
      else:
          raise Exception(f"Not supported for device type: {device}")
      log = convert(result, token, local_model_path)
      global opt_model, opt_device
      opt_model, opt_device = model, device
      return log, update_options(local_model_path)
  
file_path: BigDL/python/nano/client-application/StableDiffusion/launch.py
imports: import gradio
  import os
  import multiprocessing
  import time
  import psutil
  from stable_diffusion.runner import StableDiffusionRunner
  from stable_diffusion.converter import convert
  from stable_diffusion.pipelines import NanoStableDiffusionPipeline
  from stable_diffusion.utils import get_snapshot_dir_from_model_version
  from stable_diffusion import runner_process
  import click
label_desc: Use image node_id 5 for calling a global function with example usage: pre_convert(model, device, token, local_model_path) and returns: log,  update_options