def snippet_seq(name, offset=0, count=sys.maxsize):
    """
    Return a tuple containing the unicode text snippets read from the snippet
    file having *name*. Snippets are delimited by a blank line. If specified,
    *count* snippets starting at *offset* are returned.
    """
    path = os.path.join(test_file_dir, 'snippets', '%s.txt' % name)
    with open(path, 'rb') as f:
        text = f.read().decode('utf-8')
    snippets = text.split('\n\n')
    start, end = offset, offset+count
    return tuple(snippets[start:end])
dataset/ETHPy150Open scanny/python-pptx/tests/unitutil/file.py/snippet_seq/original