code: def _is_tensor_eq(arg1, arg2):
      arg1 = canon_bp(arg1)
      arg2 = canon_bp(arg2)
      if isinstance(arg1, TensExpr):
          return arg1.equals(arg2)
      elif isinstance(arg2, TensExpr):
          return arg2.equals(arg1)
      return arg1 == arg2
  
file_path: sympy/sympy/physics/hep/tests/test_gamma_matrices.py
imports: from sympy.matrices.dense import eye, Matrix
  from sympy.tensor.tensor import tensor_indices, TensorHead, tensor_heads, TensExpr, canon_bp
  from sympy.physics.hep.gamma_matrices import GammaMatrix, LorentzIndex, kahane_simplify, gamma_trace, _simplify_single_line, simplify_gamma_expression
  from sympy import Symbol
label_desc: Use image node_id 1 for calling a global function with example usage: _is_tensor_eq(arg1, arg2) and returns: unknown, arg1, arg2