class_docstr: Abstract base class for time stretching
  
  This contains the deformation functions and
  annotation query mapping, but does not manage
  state or parameters.
code: def deform_times(ann, state):
      # Deform time values for all annotations.
  
      ann.time /= state["rate"]
  
      if ann.duration is not None:
          ann.duration /= state["rate"]
  
      for obs in ann.pop_data():
          ann.append(
              time=obs.time / state["rate"],
              duration=obs.duration / state["rate"],
              value=obs.value,
              confidence=obs.confidence,
          )
  
imports: import pyrubberband
  import numpy
  from ..base import BaseTransformer, _get_rng
label_desc: Use image node_id 5 for calling the AbstractTimeStretch obj's underlying member method code with example usage: obj.deform_times(ann, state) without return types