title: Python command that returns location to a function
body: <p>I know this sounds stupid.</p>
  
  <p>I am looking for python command that returns the path to the location of a function. So like</p>
  
  <pre><code>command(np.reshape)
  </code></pre>
  
  <p>should give the path to the folder in which np.reshape is located. I am NOT interested in finding the main location of the entire <em>module</em> (here numpy), this has been answered repeatedly. I need the precise path to the function itself, exactly like <code>which</code> is doing it in MATLAB.</p>