def get_ref_annotation_data_before_time(self, id_tier, time):
        """Give the ref annotation before a time. If an annotation overlaps
        with ``time`` that annotation will be returned.

        :param str id_tier: Name of the tier.
        :param int time: Time to get the annotation before.
        :returns: Annotation before that time in a list
        :raises KeyError: If the tier is non existent.
        """
        befores = self.get_ref_annotation_data_between_times(id_tier, 0, time)
        if befores:
            return [max(befores, key=lambda x: x[0])]
        else:
            return []
def get_ref_annotation_data_before_time(self, id_tier, time):
        
        befores = self.get_ref_annotation_data_between_times(id_tier, 0, time)
        if befores:
            return [max(befores, key=lambda x: x[0])]
        else:
            return []
def get_ref_annotation_data_before_time ( self , id_tier , time ) : befores = self . get_ref_annotation_data_between_times ( id_tier , 0 , time ) if befores : return [ max ( befores , key = lambda x : x [ 0 ] ) ] else : return [ ]
Give the ref annotation before a time. If an annotation overlaps
        with ``time`` that annotation will be returned.

        :param str id_tier: Name of the tier.
        :param int time: Time to get the annotation before.
        :returns: Annotation before that time in a list
        :raises KeyError: If the tier is non existent.
Give the ref annotation before a time . If an annotation overlaps with time that annotation will be returned .