code: def test_st_transform():
      # Check that STTransform maps exactly like MatrixTransform
      pts = np.random.normal(size=(10, 4))
  
      scale = (1, 7.5, -4e-8)
      translate = (1e6, 0.2, 0)
      st = tr.STTransform(scale=scale, translate=translate)
      at = tr.MatrixTransform()
      at.scale(scale)
      at.translate(translate)
  
      assert np.allclose(st.map(pts), at.map(pts))
      assert np.allclose(st.inverse.map(pts), at.inverse.map(pts))
  
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 6 for calling a global function with example usage: test_st_transform() without return types