title: In Python, why isn't there a built in function to find a key in a nested dictionary?
body: <p>To elaborate</p>
  
  <pre><code>sample_dict = {"key1" : {"key2" : "value_of_interest}}
  </code></pre>
  
  <p>Now I want to be able to make the following call</p>
  
  <pre><code>val = sample_dict.recursive_get("key2", None)
  </code></pre>
  
  <p>I can think of a number of cases where this would be useful. For example, getting a key-value from an api response that came as JSON.</p>
  
  <p>And I know it is not difficult to write to such a function, but my question is - why is it not already included? </p>
  
  <p>If it leads to bad design, please provide some examples.</p>