code: def test_output_order(self):
      # Ensure output order is respected for optimize cases, the below
      # conraction should yield a reshaped tensor view
      # gh-16415
  
      a = np.ones((2, 3, 5), order="F")
      b = np.ones((4, 3), order="F")
  
      for opt in [True, False]:
          tmp = np.einsum(
              "...ft,mf->...mt", a, b, order="a", optimize=opt
          )
          assert_(tmp.flags.f_contiguous)
  
          tmp = np.einsum(
              "...ft,mf->...mt", a, b, order="f", optimize=opt
          )
          assert_(tmp.flags.f_contiguous)
  
          tmp = np.einsum(
              "...ft,mf->...mt", a, b, order="c", optimize=opt
          )
          assert_(tmp.flags.c_contiguous)
  
          tmp = np.einsum(
              "...ft,mf->...mt", a, b, order="k", optimize=opt
          )
          assert_(tmp.flags.c_contiguous is False)
          assert_(tmp.flags.f_contiguous is False)
  
          tmp = np.einsum("...ft,mf->...mt", a, b, optimize=opt)
          assert_(tmp.flags.c_contiguous is False)
          assert_(tmp.flags.f_contiguous is False)
  
      c = np.ones((4, 3), order="C")
      for opt in [True, False]:
          tmp = np.einsum(
              "...ft,mf->...mt", a, c, order="a", optimize=opt
          )
          assert_(tmp.flags.c_contiguous)
  
      d = np.ones((2, 3, 5), order="C")
      for opt in [True, False]:
          tmp = np.einsum(
              "...ft,mf->...mt", d, c, order="a", optimize=opt
          )
          assert_(tmp.flags.c_contiguous)
  
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 43 for calling the TestEinsum obj's underlying member method code with example usage: obj.test_output_order() without return types