code: def test_transform():
      assert scale(1, 2, (3, 4)).tolist() == [
          [1, 0, 0],
          [0, 2, 0],
          [0, -4, 1],
      ]
  
file_path: sympy/sympy/geometry/tests/test_entity.py
imports: from sympy.core.numbers import Rational, pi
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol
  from sympy.geometry import Circle, Ellipse, Point, Line, Parabola, Polygon, Ray, RegularPolygon, Segment, Triangle, Plane, Curve
  from sympy.geometry.entity import scale, GeometryEntity
  from sympy.testing.pytest import raises
label_desc: Use image node_id 4 for calling a global function with example usage: test_transform() without return types