'Returns the label for the given position in the target event sequence.
Args:
target_events: A list-like sequence of target events.
position: An integer event position in the target event sequence.
Returns:
A label, an integer.'

def events_to_label(self, target_events, position):

    return self._target_encoder_decoder.events_to_label(target_events, position)
