title: How to inspect the function returns in Python?
body: <p>This may sound like a trivial question but after some time digging in StackOverflow and other sites, I haven't found a viable solution. I am currently having a function, say, like this:</p>
  
  <pre><code>def get_data_points(in_para1, in_para2):
      [do something...]
      dict_return = {"data_set1": data_set1,
                     "data_set1_type": "integers"}
      return dict_return
  
  def main():
      input_para1 = [some data]
      input_para2 = [some data]
      [call get_data_points]
  </code></pre>
  
  <p>What I am struggling is to find a way to inspect the returned dictionary of the called function (here, <code>get_data_points</code>) before calling it. The inspect module provides a method to inspect the input arguments, but I couldn't find the corresponding method to inspect the output arguments. Does Python provide such methods?</p>
  
  <p>Your help will be highly appreciated. </p>