code: def test_scalar_multiply():
      assert SparseMatrix([[1, 2]]).scalar_multiply(3) == SparseMatrix(
          [[3, 6]]
      )
  
imports: from sympy.core.numbers import Float, I, Rational
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol, symbols
  from sympy.functions.elementary.complexes import Abs
  from sympy.polys.polytools import PurePoly
  from sympy.matrices import Matrix, MutableSparseMatrix, ImmutableSparseMatrix, SparseMatrix, eye, ones, zeros, ShapeError, NonSquareMatrixError
  from sympy.testing.pytest import raises
label_desc: Use image node_id 3 for calling a global function with example usage: test_scalar_multiply() without return types