code: def init_scheduler(self, scheduler):
      if scheduler != self.scheduler or self.pipe.scheduler == None:
          local_scheduler = os.path.join(self.model_dir, "scheduler")
          self.pipe.switch_scheduler(scheduler, local_scheduler)
  
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 2 for calling the StableDiffusionRunner obj's underlying member method code with example usage: obj.init_scheduler(scheduler) without return types