code: def cpuinfo():
      ''' Return the information in /proc/cpuinfo
      as a dictionary in the following format:
      cpu_info['proc0']={...}
      cpu_info['proc1']={...}
  
      '''
  
      cpuinfo=OrderedDict()
      procinfo=OrderedDict()
  
      nprocs = 0
      with open('/proc/cpuinfo') as f:
          for line in f:
              if not line.strip():
                  # end of one processor
                  cpuinfo['proc%s' % nprocs] = procinfo
                  nprocs=nprocs+1
                  # Reset
                  procinfo=OrderedDict()
              else:
                  if len(line.split(':')) == 2:
                      procinfo[line.split(':')[0].strip()] = line.split(':')[1].strip()
                  else:
                      procinfo[line.split(':')[0].strip()] = ''
              
      return cpuinff cpuinfo():
      ''' Return the information in /proc/cpuinfo
      as a dictionary in the following format:
      cpu_info['proc0']={...}
      cpu_info['proc1']={...}
  
      '''
  
      cpuinfo=OrderedDict()
      procinfo=OrderedDict()
  
      nprocs = 0
      with open('/proc/cpuinfo') as f:
          for line in f:
              if not line.strip():
                  # end of one processor
                  cpuinfo['proc%s' % nprocs] = procinfo
                  nprocs=nprocs+1
                  # Reset
                  procinfo=OrderedDict()
              else:
                  if len(line.split(':')) == 2:
                      procinfo[line.split(':')[0].strip()] = line.split(':')[1].strip()
                  else:
                      procinfo[line.split(':')[0].strip()] = ''
              
      return cpuinfo
docs: Return the information in /proc/cpuinfo
      as a dictionary in the following format:
      cpu_info['proc0']={...}
      cpu_info['proc1']={...}