@staticmethod
def check_dict(tp):
    """ Utility function for checking if a timepoint dict is well-formed"""
    if isinstance(tp, dict) and 'time' in tp and 'type' in tp and (tp[
        'type'] == 'start' or tp['type'] == 'end'):
        return True
    else:
        return False
