code: def test_texture_coordinates():
      """Test adding texture coordinates"""
      # create a rectangle vertices
      vertices = np.array(
          [
              [0, 0, 0],
              [1, 0, 0],
              [1, 0.5, 0],
              [0, 0.5, 0],
          ]
      )
  
      # mesh faces
      faces = np.hstack([[3, 0, 1, 2], [3, 0, 3, 2]]).astype(np.int8)
  
      # Create simple texture coordinates
      texture_coordinates = np.array([[0, 0], [1, 0], [1, 1], [0, 1]])
      # Create the poly data
      mesh = pv.PolyData(vertices, faces)
      # Attempt setting the texture coordinates
      mesh.active_texture_coordinates = texture_coordinates
      # now grab the texture coordinates
      foo = mesh.active_texture_coordinates
      assert np.allclose(foo, texture_coordinates)
  
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 20 for calling a global function with example usage: test_texture_coordinates() without return types