def render_timecode(timecode, offsets, frame):
    """Render a timecode (e.g. 00:01:04.27)
    :param timecode: Timecode object (with predefined framerate, drop_frame)
    :param offsets: Offsets object which contains frame offsets so timecodes match video
    :param frame: Frame number
    """
    timecode.frames = frame + 1 + offsets.get_offset(frame)
    return str(timecode)