code: def _run(
      self, model_dir, optimization_methods, scheduler, seed, **kwargs
  ):
      self.init_generator(seed)
      image = self.run_opt_pipeline(
          model_dir,
          scheduler=scheduler,
          optimization_methods=optimization_methods,
          generator=self.generator,
          **kwargs,
      )
      return image
  
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 7 for calling the StableDiffusionRunner obj's underlying member method code with example usage: obj._run(model_dir, optimization_methods, scheduler, seed) and returns: image