def get_ref_annotation_data_before_time(self, id_tier, time):
befores = self.get_ref_annotation_data_between_times(id_tier, <NUM_LIT:0>, time)<EOL>if befores:<EOL><INDENT>return [max(befores, key=lambda x: x[<NUM_LIT:0>])]<EOL><DEDENT>else:<EOL><INDENT>return []<EOL><DEDENT>
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.