code: def test_replace_issue():
      X = FunctionMatrix(3, 3, KroneckerDelta)
      assert X.replace(lambda x: True, lambda x: x) == X
  
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 3 for calling a global function with example usage: test_replace_issue() without return types