code: def test_map_rect():
      r = Rect((2, 7), (13, 19))
      r1 = ST(scale=(2, 2), translate=(-10, 10)).map(r)
      assert r1 == Rect((-6, 24), (26, 38))
  
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 5 for calling a global function with example usage: test_map_rect() without return types