code: def test_reset_data_type(self):
      data = np.zeros((10, 10), dtype=np.uint8)
      T = Texture2D(data=data)
  
      data = np.zeros((10, 11), dtype=np.float32)
      T.set_data(data)
  
      data = np.zeros((12, 10), dtype=np.int32)
      T.set_data(data)
  
      self.assertRaises(
          ValueError, T.set_data, np.zeros([10, 10, 10, 1])
      )
  
imports: import unittest
  import numpy
  import pytest
  from vispy.gloo import Texture1D, Texture2D, Texture3D, TextureAtlas
  from vispy.testing import requires_pyopengl, run_tests_if_main, assert_raises
label_desc: Use image node_id 12 for calling the Texture2DTest obj's underlying member method code with example usage: obj.test_reset_data_type() without return types