human
Complete the below
def disk_io_counters():

    ''''Return disk I/O statistics for every disk installed on the
    system as a dict of raw tuples.'
    '''
 Can you provide a the Python program you requested?
assistant
#Here is the Python program you requested.
    def get_partitions():
        partitions = []
        with open_text(('%s/partitions' % get_procfs_path())) as f:
            lines = f.readlines()[2:]
        for line in reversed(lines):
            (_, _, _, name) = line.split()
            if name[(-1)].isdigit():
                partitions.append(name)
            elif ((not partitions) or (not partitions[(-1)].startswith(name))):
                partitions.append(name)
        return partitions
    retdict = {}
    partitions = get_partitions()
    with open_text(('%s/diskstats' % get_procfs_path())) as f:
        lines = f.readlines()
    for line in lines:
        fields = line.split()
        fields_len = len(fields)
        if (fields_len == 15):
            name = fields[3]
            reads = int(fields[2])
            (reads_merged, rbytes, rtime, writes, writes_merged, wbytes, wtime, _, busy_time, _) = map(int, fields[4:14])
        elif (fields_len == 14):
            name = fields[2]
            (reads, reads_merged, rbytes, rtime, writes, writes_merged, wbytes, wtime, _, busy_time, _) = map(int, fields[3:14])
        elif (fields_len == 7):
            name = fields[2]
            (reads, rbytes, writes, wbytes) = map(int, fields[3:])
            rtime = wtime = reads_merged = writes_merged = busy_time = 0
        else:
            raise ValueError(('not    sure    how    to    interpret    line    %r' % line))
        if (name in partitions):
            ssize = get_sector_size(name)
            rbytes *= ssize
            wbytes *= ssize
            retdict[name] = (reads, writes, rbytes, wbytes, rtime, wtime, reads_merged, writes_merged, busy_time)
    return retdict