code: def test_set_data_offset(self):
      data = np.zeros(100, np.float32)
      subdata = data[:10]
  
      B = DataBuffer(data)
      B.set_subdata(subdata, offset=10)
      last_cmd = B._glir.clear()[-1]
      offset = last_cmd[2]
      assert offset == 10 * 4
  
imports: import unittest
  import numpy
  from vispy.testing import run_tests_if_main
  from vispy.gloo.buffer import Buffer, DataBuffer, DataBufferView, VertexBuffer, IndexBuffer
label_desc: Use image node_id 10 for calling the DataBufferTest obj's underlying member method code with example usage: obj.test_set_data_offset() without return types