def _extend_control_events_default(control_events, events, state):
    'Default function for extending control event sequence.\n\n  This function extends a control event sequence by duplicating the final event\n  in the sequence.  The control event sequence will be extended to have length\n  one longer than the generated event sequence.\n\n  Args:\n    control_events: The control event sequence to extend.\n    events: The list of generated events.\n    state: State maintained while generating, unused.\n\n  Returns:\n    The resulting state after extending the control sequence (in this case the\n    state will be returned unmodified).\n  '
    while (len(control_events) <= len(events)):
        control_events.append(control_events[(- 1)])
    return state
Default function for extending control event sequence.

This function extends a control event sequence by duplicating the final event
in the sequence.  The control event sequence will be extended to have length
one longer than the generated event sequence.

Args:
  control_events: The control event sequence to extend.
  events: The list of generated events.
  state: State maintained while generating, unused.

Returns:
  The resulting state after extending the control sequence (in this case the
  state will be returned unmodified).
def _extend_control_events_default(control_events, events, state):
    'Default function for extending control event sequence.\n\n  This function extends a control event sequence by duplicating the final event\n  in the sequence.  The control event sequence will be extended to have length\n  one longer than the generated event sequence.\n\n  Args:\n    control_events: The control event sequence to extend.\n    events: The list of generated events.\n    state: State maintained while generating, unused.\n\n  Returns:\n    The resulting state after extending the control sequence (in this case the\n    state will be returned unmodified).\n  '
    while (len(control_events) <= len(events)):
        control_events.append(control_events[(- 1)])
    return state