title: How to check if a list of numpy arrays contains a given test array?
body: <p>I have a list of <code>numpy</code> arrays, say,</p>
  
  <pre><code>a = [np.random.rand(3, 3), np.random.rand(3, 3), np.random.rand(3, 3)]
  </code></pre>
  
  <p>and I have a test array, say </p>
  
  <pre><code>b = np.random.rand(3, 3)
  </code></pre>
  
  <p>I want to check whether <code>a</code> contains <code>b</code> or not. However </p>
  
  <pre><code>b in a 
  </code></pre>
  
  <p>throws the following error: </p>
  
  <blockquote>
    <p>ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()</p>
  </blockquote>
  
  <p>What is the proper way for what I want? </p>