code: def test_funcmatrix():
      i, j = symbols("i,j")
      X = FunctionMatrix(3, 3, Lambda((i, j), i - j))
      assert X[1, 1] == 0
      assert X[1, 2] == -1
      assert X.shape == (3, 3)
      assert X.rows == X.cols == 3
      assert Matrix(X) == Matrix(3, 3, lambda i, j: i - j)
      assert isinstance(X * X + X, MatrixExpr)
  
file_path: sympy/sympy/matrices/expressions/tests/test_funcmatrix.py
imports: from sympy.core import symbols, Lambda
  from sympy.core.sympify import SympifyError
  from sympy.functions import KroneckerDelta
  from sympy.matrices import Matrix
  from sympy.matrices.expressions import FunctionMatrix, MatrixExpr, Identity
  from sympy.testing.pytest import raises
label_desc: Use image node_id 2 for calling a global function with example usage: test_funcmatrix() without return types