code: def __init__(
      self,
      action,
      zone=None,
      coverage=None,
      factor=None,
      name="Spectrogram_Aug",
      device="cpu",
      verbose=0,
      stateless=True,
      silence=False,
  ):
      super().__init__(
          name=name,
          method=Method.SPECTROGRAM,
          action=action,
          aug_min=None,
          aug_max=None,
          device=device,
          verbose=verbose,
      )
  
      self.zone = zone
      self.coverage = coverage
      self.factor = factor
      self.stateless = stateless
      self.silence = silence
  
      if self.zone[0] < 0:
          raise ValueError(
              "Lower bound of zone is smaller than {}.".format(0)
              + " It should be larger than {}".format(0)
          )
  
      if self.zone[1] > 1:
          raise ValueError(
              "Upper bound of zone is larger than {}.".format(1)
              + " It should be smaller than {}".format(1)
          )
  
      if self.coverage < 0 or self.coverage > 1:
          raise ValueError(
              "Coverage value should be between than 0 and 1 while "
              + "input value is {}".format(self.coverage)
          )
  
file_path: nlpaug/nlpaug/augmenter/spectrogram/spectrogram_augmenter.py
imports: import numpy
  from nlpaug.util import Method
  from nlpaug import Augmenter
label_desc: Use image node_id 1 to create a new SpectrogramAugmenter object from inherited base classes: Augmenter with example: obj = SpectrogramAugmenter(action, zone, coverage, factor, name, device, verbose, stateless, silence)