code: def test_numpy_to_texture():
      tex_im = np.ones((1024, 1024, 3), dtype=np.float64) * 255
      with pytest.warns(UserWarning, match="np.uint8"):
          tex = numpy_to_texture(tex_im)
      assert isinstance(tex, pv.Texture)
      assert tex.to_array().dtype == np.uint8
  
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 17 for calling a global function with example usage: test_numpy_to_texture() without return types