@classmethod
def from_dict(cls, seq_dict):
    """returns a Sequence, given a Python dictionary
        where keys of dictionary are arguments to Sequence.from_keyword()

        Parameters
        ----------
        seq_dict : dict
            with following key, value pairs
            onsets_Hz : numpy.ndarray or None
                of type int, onset of each annotated segment in samples/second
            offsets_Hz : numpy.ndarray or None
                of type int, offset of each annotated segment in samples/second
            onsets_s : numpy.ndarray or None
                of type float, onset of each annotated segment in seconds
            offsets_s : numpy.ndarray or None
                of type float, offset of each annotated segment in seconds
            labels : str, list, or numpy.ndarray
                of type str, label for each annotated segment

        seq_dict must specify both onsets and offsets, either in units of Hz or seconds
        (or both).

        Examples
        --------
        >>> seq_dict = {
        ...     'labels': 'abc',
        ...     'onsets_Hz': np.asarray([16005, 17925, 19837]),
        ...     'offsets_Hz': np.asarray([17602, 19520, 21435]),
        ...     'file': 'bird0.wav',
        ...     }
        >>> seq = Sequence.from_dict(seq_dict)
        """
    return cls.from_keyword(**seq_dict)
