code: def duration(label, stop_it=True, stop_at=None):
      
  
      if label not in labels:
          return None
  
      if "duration" in labels[label]:
          return Duration(labels[label]["duration"])
  
      if stop_it:
          return stop(label, at=stop_at)
      else:
          return None
docs: Returns duration in seconds for label