code: def test_st_mapping():
      p1 = [[5.0, 7.0], [23.0, 8.0]]
      p2 = [[-1.3, -1.4], [1.1, 1.2]]
  
      t = tr.STTransform()
      t.set_mapping(p1, p2)
  
      assert np.allclose(t.map(p1)[:, : len(p2)], p2)
  
file_path: vispy/vispy/visuals/transforms/tests/test_transforms.py
imports: import numpy
  from numpy.testing import assert_allclose
  import pytest
  import vispy.visuals.transforms
  from vispy.geometry import Rect
  from vispy.testing import run_tests_if_main
label_desc: Use image node_id 7 for calling a global function with example usage: test_st_mapping() without return types