code: def test_from_array():
      texture = pv.Texture()
      with pytest.raises(ValueError, match="Third dimension"):
          texture._from_array(np.zeros((10, 10, 2)))
  
      with pytest.raises(ValueError, match="must be nn by nm"):
          texture._from_array(np.zeros(10))
  
imports: import numpy
  import pytest
  import vtk
  import pyvista
  from pyvista import examples
  from pyvista.core.errors import VTKVersionError
  from pyvista.plotting.texture import numpy_to_texture
label_desc: Use image node_id 4 for calling a global function with example usage: test_from_array() without return types