code: def test_stable_diffusion_model_editing_default(self):
      model_ckpt = "CompVis/stable-diffusion-v1-4"
      pipe = StableDiffusionModelEditingPipeline.from_pretrained(
          model_ckpt, safety_checker=None
      )
      pipe.to(torch_device)
      pipe.set_progress_bar_config(disable=None)
      pipe.enable_attention_slicing()
  
      inputs = self.get_inputs()
      image = pipe(**inputs).images
      image_slice = image[0, -3:, -3:, -1].flatten()
  
      assert image.shape == (1, 512, 512, 3)
  
      expected_slice = np.array(
          [
              0.6749496,
              0.6386453,
              0.51443267,
              0.66094905,
              0.61921215,
              0.5491332,
              0.5744417,
              0.58075106,
              0.5174658,
          ]
      )
  
      assert np.abs(expected_slice - image_slice).max() < 1e-2
  
      # make sure image changes after editing
      pipe.edit_model("A pack of roses", "A pack of blue roses")
  
      image = pipe(**inputs).images
      image_slice = image[0, -3:, -3:, -1].flatten()
  
      assert image.shape == (1, 512, 512, 3)
  
      assert np.abs(expected_slice - image_slice).max() > 1e-1
  
imports: import gc
  import unittest
  import numpy
  import torch
  from transformers import CLIPTextConfig, CLIPTextModel, CLIPTokenizer
  from diffusers import AutoencoderKL, DDIMScheduler, EulerAncestralDiscreteScheduler, PNDMScheduler, StableDiffusionModelEditingPipeline, UNet2DConditionModel
  from diffusers.utils.testing_utils import enable_full_determinism, nightly, require_torch_gpu, skip_mps, torch_device
  from ..pipeline_params import TEXT_TO_IMAGE_BATCH_PARAMS, TEXT_TO_IMAGE_IMAGE_PARAMS, TEXT_TO_IMAGE_PARAMS
  from ..test_pipelines_common import PipelineKarrasSchedulerTesterMixin, PipelineLatentTesterMixin, PipelineTesterMixin
label_desc: Use image node_id 3 for calling the StableDiffusionModelEditingSlowTests obj's underlying member method code with example usage: obj.test_stable_diffusion_model_editing_default() without return types