title: Testing for a specific nested tuple structure
body: <p>In a part of my code, I got an argument being passed in form of <code>((int, int), (int, int))</code>, for example: <code>((1, 2), (3, 4))</code>. I need a fast test that checks if the passed argument is exactly in that form. Something along the lines of:</p>
  
  <pre class="lang-py prettyprint-override"><code>&gt;&gt;&gt; foo = ((1, 2), (3, 4))
  &gt;&gt;&gt; bar = ((1, 'not int'), (3, 4))
  &gt;&gt;&gt; buz = (1, 2, 3)
  &gt;&gt;&gt; test(foo)
      True
  &gt;&gt;&gt; test(bar)
      False
  &gt;&gt;&gt; test(buz)
      False
  </code></pre>
  
  <p>Somewhat naively, I've tried this:  </p>
  
  <pre class="lang-py prettyprint-override"><code>&gt;&gt;&gt; isinstance(((1, 2), (3, 4)), ((int, int), (int, int)) 
      False
  </code></pre>
  
  <p>but that didn't work that well ¯\_(ツ)_/¯<br>
  Imagine if it did though</p>