title: I have list inside python list. I want to extract sublists based on another new list
body: <pre><code>list_1 = [[1, 2, 3], [100, 13, 17], [5, 14, 29], [17, 55, 1000]]
  
  list_2 = [1, 100]
  </code></pre>
  
  <p>The return list should contain sublist of <code>list_1</code>, if atleast one element from <code>list_2</code> present in sublist of <code>list_1</code></p>
  
  <p>looking for results similar to <code>[[1, 2, 3], [100, 13, 17] ]</code></p>
  
  <p>If <code>list_2 = [5, 13, 17, 55]</code>:</p>
  
  <pre><code>[[100, 13, 17], [5, 14, 29],[17, 55, 1000]]
  </code></pre>
  
  <p>If <code>list_2 = [29]</code>:</p>
  
  <pre><code>[[5, 14, 29]]
  </code></pre>
  
  <p>I'm looking for a fastest way to achieve this, since most of the time, length of my <code>list_1</code> is more than 5 millions.</p>
  
  <p>Is there any network library functions to achieve this?</p>