title: How to get the path of a function in Python?
body: <p>I want to obtain the file path of a function in Python. </p>
  
  <p>How to do it?</p>
  
  <p>For example, </p>
  
  <pre><code>import keras.backend as K
  y = K.resize_images(x, 2, 2, 'channels_last')
  path = function(K.resize_images)
  print(path)
  #C:\Program Files\Python36\Lib\site-packages\keras\backend\tensorflow_backend.py
  </code></pre>
  
  <p>Thank you.</p>