code: def test_add_noise_device(self):
      for scheduler_class in self.scheduler_classes:
          if scheduler_class == IPNDMScheduler:
              continue
          scheduler_config = self.get_scheduler_config()
          scheduler = scheduler_class(**scheduler_config)
          scheduler.set_timesteps(100)
  
          sample = self.dummy_sample.to(torch_device)
          if scheduler_class == CMStochasticIterativeScheduler:
              # Get valid timestep based on sigma_max, which should always be in timestep schedule.
              scaled_sigma_max = scheduler.sigma_to_t(
                  scheduler.config.sigma_max
              )
              scaled_sample = scheduler.scale_model_input(
                  sample, scaled_sigma_max
              )
          else:
              scaled_sample = scheduler.scale_model_input(sample, 0.0)
          self.assertEqual(sample.shape, scaled_sample.shape)
  
          noise = torch.randn_like(scaled_sample).to(torch_device)
          t = scheduler.timesteps[5][None]
          noised = scheduler.add_noise(scaled_sample, noise, t)
          self.assertEqual(noised.shape, scaled_sample.shape)
  
imports: import inspect
  import json
  import os
  import tempfile
  import unittest
  import uuid
  from typing import Dict, List, Tuple
  import numpy
  import torch
  from huggingface_hub import delete_repo
  import diffusers
  from diffusers import CMStochasticIterativeScheduler, DDIMScheduler, DEISMultistepScheduler, DiffusionPipeline, EulerAncestralDiscreteScheduler, EulerDiscreteScheduler, IPNDMScheduler, LMSDiscreteScheduler, UniPCMultistepScheduler, VQDiffusionScheduler, logging
  from diffusers.configuration_utils import ConfigMixin, register_to_config
  from diffusers.schedulers.scheduling_utils import SchedulerMixin
  from diffusers.utils.testing_utils import CaptureLogger, torch_device
  from ..others.test_utils import TOKEN, USER, is_staging_test
label_desc: Use image node_id 14 for calling the SchedulerCommonTest obj's underlying member method code with example usage: obj.test_add_noise_device() without return types