<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def subseq(start_offset=0, end_offset=None):
 """ Return a portion of the input sequence """

    def _(sequence):
        return sequence.subseq(start_offset, end_offset)
    return _