code: def pre_pipeline_process(
      model_dir,
      optimization_methods,
      scheduler,
      seed,
      prompt,
      scale,
      steps,
      height,
      width,
      neg_prompt,
  ):
      """
      align the input options from minimal UI with standard Web UI
      """
      model = optimization_methods.split(" ")[0]
      if "CPU FP32" in optimization_methods:
          result = f"{model}/JIT"
      elif "CPU FP16" in optimization_methods:
          result = f"{model}/OpenVINO FP16"
      elif "CPU + iGPU FP16" in optimization_methods:
          result = f"{model}/OpenVINO FP16 iGPU"
      else:
          raise Exception(f"not supported for {optimization_methods}")
      if runner_process.cpu_binding:
          fn = pipeline_process
          inputs = [
              model_dir,
              result,
              scheduler,
              seed,
              prompt,
              scale,
              steps,
              height,
              width,
              neg_prompt,
          ]
      else:
          fn = pipeline
          inputs = [
              model_dir,
              runner_process.var_dict,
              result,
              scheduler,
              seed,
              prompt,
              scale,
              steps,
              height,
              width,
              neg_prompt,
          ]
      return fn(*inputs)
  
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 6 for calling a global function with example usage: pre_pipeline_process(model_dir, optimization_methods, scheduler, seed, prompt, scale, steps, height, width, neg_prompt) and returns: fn