def get_sequential_chunk(tests, modulo, modulo_index, is_sorted=False):
    """
    >>> get_sequential_chunk(range(10), 4, 0)
    [0, 1, 2]
    >>> get_sequential_chunk(range(10), 4, 1)
    [3, 4, 5]
    >>> get_sequential_chunk(range(10), 4, 2)
    [6, 7]
    >>> get_sequential_chunk(range(10), 4, 3)
    [8, 9]
    >>> get_sequential_chunk(range(10), 4, 4)
    []
    >>> get_sequential_chunk(range(10), 4, 5)
    []
    """
    if not is_sorted:
        tests = sorted(tests)
    chunk_size = len(tests) // modulo
    not_used = len(tests) % modulo
    shift = chunk_size + (modulo_index < not_used)
    start = chunk_size * modulo_index + min(modulo_index, not_used)
    end = start + shift
    return [] if end > len(tests) else tests[start:end]