code: def run(model_dir, optimization_methods, scheduler, **kwargs):
      assert StableDiffusionRunner._instance is not None
      runner = StableDiffusionRunner._instance
      return runner._run(
          model_dir, optimization_methods, scheduler, **kwargs
      )
  
imports: from typing import ClassVar, Optional
  import torch
  import os
  from bigdl.nano.pytorch import InferenceOptimizer
  from diffusers.schedulers import *
  from .utils import get_snapshot_dir_from_model_version
  from .pipelines import NanoStableDiffusionPipeline
label_desc: Use image node_id 6 for calling the StableDiffusionRunner obj's underlying member method code with example usage: obj.run(model_dir, optimization_methods, scheduler) and returns: runner