code: def test_small_boolean_arrays(self):
      # See gh-5946.
      # Use array of True embedded in False.
      a = np.zeros((16, 1, 1), dtype=np.bool_)[:2]
      a[...] = True
      out = np.zeros((16, 1, 1), dtype=np.bool_)[:2]
      tgt = np.ones((2, 1, 1), dtype=np.bool_)
      res = np.einsum("...ij,...jk->...ik", a, a, out=out)
      assert_equal(res, tgt)
  
imports: import itertools
  import sys
  import platform
  import pytest
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_almost_equal, assert_raises, suppress_warnings, assert_raises_regex, assert_allclose
label_desc: Use image node_id 30 for calling the TestEinsum obj's underlying member method code with example usage: obj.test_small_boolean_arrays() without return types