code: def test_grid_index_snap(self):
      vals = [self.view1, self.view2, self.view3, self.view2]
      keys = [(0, 0), (0, 1), (1, 0), (1, 1)]
      grid = GridSpace(zip(keys, vals))
      self.assertEqual(grid[0.1, 0.1], self.view1)
  
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 2 for calling the GridTest obj's underlying member method code with example usage: obj.test_grid_index_snap() without return types