title: TypeError: 'type' object is not subscriptable
body: <pre><code>data_path = "/home/nikitha/Desktop/SOftmax/cifar-10-batches-bin/data_batch_1"
  
  fo = open(data_path,'rb')
  fo.seek(0)
  fo.seek(0)
  dict = (pickle.load(fo,encoding='bytes'))
  l=np.array(dict[b'labels'])
  d=np.array(dict[b'data'])
  l=np.array(dict[b'labels'])
  </code></pre>
  
  <blockquote>
    <p>TypeError: 'type' object is not subscriptable</p>
  </blockquote>
  
  <p>This is the above error I get when I run the code</p>