code: def test_TensorProduct_shape():
      expr = TensorProduct(3, 4, evaluate=False)
      assert expr.shape == ()
      assert expr.rank() == 0
  
      expr = TensorProduct(Array([1, 2]), Array([x, y]), evaluate=False)
      assert expr.shape == (2, 2)
      assert expr.rank() == 2
      expr = TensorProduct(expr, expr, evaluate=False)
      assert expr.shape == (2, 2, 2, 2)
      assert expr.rank() == 4
  
      expr = TensorProduct(
          Matrix.eye(2), Array([[0, -1], [1, 0]]), evaluate=False
      )
      assert expr.shape == (2, 2, 2, 2)
      assert expr.rank() == 4
  
file_path: sympy/sympy/tensor/tests/test_functions.py
imports: from sympy.tensor.functions import TensorProduct
  from sympy.matrices.dense import Matrix
  from sympy.matrices.expressions.matexpr import MatrixSymbol
  from sympy.tensor.array import Array
  from sympy.abc import x, y, z
  from sympy.abc import i, j, k, l
label_desc: Use image node_id 2 for calling a global function with example usage: test_TensorProduct_shape() without return types