code: def test_ndlayout_init(self):
      grid = NdLayout(
          [
              (0, self.view1),
              (1, self.view2),
              (2, self.view3),
              (3, self.view2),
          ]
      )
      self.assertEqual(grid.shape, (1, 4))
  
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 1 for calling the NdLayoutTest obj's underlying member method code with example usage: obj.test_ndlayout_init() without return types