code: def test_overlap(self):
      a = np.arange(9, dtype=int).reshape(3, 3)
      b = np.arange(9, dtype=int).reshape(3, 3)
      d = np.dot(a, b)
      # sanity check
      c = np.einsum("ij,jk->ik", a, b)
      assert_equal(c, d)
      # gh-10080, out overlaps one of the operands
      c = np.einsum("ij,jk->ik", a, b, out=b)
      assert_equal(c, d)
  
imports: import functools
  import itertools
  from unittest import expectedFailure, skipIf, SkipTest
  import torch._numpy
  from pytest import raises
  from torch._numpy.testing import assert_, assert_allclose, assert_almost_equal, assert_array_equal, assert_equal, suppress_warnings
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, TestCase
label_desc: Use image node_id 1 for calling the TestMisc obj's underlying member method code with example usage: obj.test_overlap() without return types