human
Complete this python program:
def diskstats():
assistant
#Here is the Python program you requested.

    """.. versionchanged:: 2016.3.2
    Return the disk stats for this minion
    .. versionchanged:: 2016.11.4
    Added support for AIX
    CLI Example:
    .. code-block:: bash
    salt \*\ status.diskstats
    """
    def linux_diskstats():
        '\n                                linux    specific    implementation    of    diskstats\n                                '
        ret = {}
        try:
            with salt.utils.files.fopen('/proc/diskstats', 'r') as fp_:
                stats = fp_.read()
        except IOError:
            pass
        else:
            for line in stats.splitlines():
                if (not line):
                    continue
                comps = line.split()
                ret[comps[2]] = {'major': _number(comps[0]), 'minor': _number(comps[1]), 'device': _number(comps[2]), 'reads_issued': _number(comps[3]), 'reads_merged': _number(comps[4]), 'sectors_read': _number(comps[5]), 'ms_spent_reading': _number(comps[6]), 'writes_completed': _number(comps[7]), 'writes_merged': _number(comps[8]), 'sectors_written': _number(comps[9]), 'ms_spent_writing': _number(comps[10]), 'io_in_progress': _number(comps[11]), 'ms_spent_in_io': _number(comps[12]), 'weighted_ms_spent_in_io': _number(comps[13])}
        return ret
    def generic_diskstats():
        '\n                                generic    implementation    of    diskstats\n                                note:    freebsd    and    sunos\n                                '
        ret = {}
        iostat = __salt__['cmd.run']('iostat    -xzd').splitlines()
        header = iostat[1]
        for line in iostat[2:]:
            comps = line.split()
            ret[comps[0]] = {}
            for (metric, value) in zip(header.split()[1:], comps[1:]):
                ret[comps[0]][metric] = _number(value)
        return ret
    def aix_diskstats():
        '\n                                AIX    specific    implementation    of    diskstats\n                                '
        ret = {}
        procn = None
        fields = []
        disk_name = ''
        disk_mode = ''
        for line in __salt__['cmd.run']('iostat    -dDV').splitlines():
            if ((not line) or line.startswith('System') or...