class_docstr: Time stretch the signal without changing the pitch
code: def __init__(
      self,
      min_rate: float = 0.8,
      max_rate: float = 1.25,
      leave_length_unchanged: bool = True,
      p: float = 0.5,
  ):
      super().__init__(p)
      assert min_rate >= 0.1
      assert max_rate <= 10
      assert min_rate <= max_rate
      self.min_rate = min_rate
      self.max_rate = max_rate
      self.leave_length_unchanged = leave_length_unchanged
  
file_path: audiomentations/audiomentations/augmentations/time_stretch.py
imports: import random
  import librosa
  import numpy
  from numpy.typing import NDArray
  from audiomentations.core.transforms_interface import BaseWaveformTransform
label_desc: Use image node_id 1 to create a new TimeStretch object from inherited base classes: BaseWaveformTransform with example: obj = TimeStretch(min_rate, max_rate, leave_length_unchanged, p)