code: def test_raster_sample(self):
      raster = Raster(self.array1)
      self.assertEqual(
          raster.sample(y=0),
          Curve(
              np.array([(0, 0), (1, 1), (2, 2)]),
              kdims=["x"],
              vdims=["z"],
          ),
      )
  
imports: import numpy
  from holoviews.element import HSV, RGB, Curve, Image, QuadMesh, Raster
  from holoviews.element.comparison import ComparisonTestCase
label_desc: Use image node_id 4 for calling the TestRaster obj's underlying member method code with example usage: obj.test_raster_sample() without return types