title: How to unpickle the files in python?
body: <p>I have some pickle files which have trained machine learning models.
  I want to unpickle them and want to see the code. I tried by writing these code lines.</p>
  <pre><code>import pickle
  with open('cv.pickle','rb') as f:
      data_1 = pickle.load(f)
  </code></pre>
  <p>This code is giving the following error:</p>
  <pre><code>AttributeError                            Traceback (most recent call last)
  
  &lt;ipython-input-5-25ea81eeb394&gt; in &lt;module&gt;()
        2 
        3 with open('cv.pickle','rb') as f:
  ----&gt; 4     data_1 = pickle.load(f)
  
  AttributeError: Can't get attribute 'dummy_fn' on &lt;module '__main__'&gt;
  </code></pre>