def create_metrics(bpm, beats, both, dur, num_beats):
    """
    Creates metrics dictionary

    Args:
        bpm: average beats per minute
        beats: array of times when beats occur
        both: vector containing minimum and maximum voltage
        dur: duration of the ECG signal
        num_beats: number of beats that occurred during the signal
    Returns:
        metrics: dictionary of appropriate metrics from signal
    """
    metrics = {
        "mean_hr_bpm": bpm,
        "voltage extremes": both,
        "duration": dur,
        "num_beats": num_beats,
        "beats": beats
    }
    return metrics