code: def update_options(local_model_path=None):
      """
      when it's other occasions, will not set the option for users
      """
      choices = []
      for model in MODEL_CHOICES:
          for device in DEVICE_CHOICES:
              if check_option(model, device, local_model_path):
                  temp = model + " " + device
                  if device == "CPU/iGPU FP16":
                      choices.append(f"{model} CPU FP16")
                      choices.append(f"{model} CPU + iGPU FP16")
                  else:
                      choices.append(temp)
      if opt_model is not None and opt_device is not None:
          value = opt_model + " " + opt_device
      else:
          value = None
      return gr.update(
          value=value, choices=choices, label="switch option"
      )
  
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 4 for calling a global function with example usage: update_options(local_model_path) and returns: gr