code: def test_ndlayout_overlay_ndlayout_reverse(self):
      items = [
          (0, self.view1),
          (1, self.view2),
          (2, self.view3),
          (3, self.view2),
      ]
      grid = NdLayout(items)
      items2 = [
          (0, self.view2),
          (1, self.view1),
          (2, self.view2),
          (3, self.view3),
      ]
      grid2 = NdLayout(items2)
  
      expected_items = [
          (0, self.view2 * self.view1),
          (1, self.view1 * self.view2),
          (2, self.view2 * self.view3),
          (3, self.view3 * self.view2),
      ]
      expected = NdLayout(expected_items)
      self.assertEqual(grid2 * grid, expected)
  
imports: import numpy
  import pytest
  from holoviews import AdjointLayout, Element, GridSpace, HoloMap, Layout, NdLayout, Overlay
  from holoviews.element import Curve, HLine, Image
  from holoviews.element.comparison import ComparisonTestCase
label_desc: Use image node_id 5 for calling the NdLayoutTest obj's underlying member method code with example usage: obj.test_ndlayout_overlay_ndlayout_reverse() without return types