input: Write a function to compute the element-wise product of two matrices A and B, and return the resulting matrix C. If the matrices do not have the same dimensions, return "Matrices dimensions mismatch." If either of the matrices is empty, return an empty list.
  assert elementWiseProduct([[3, 4], [1, 2]], [[7, 5], [0, 1]])==[[21, 20], [0, 2]]
  assert elementWiseProduct([[2, 3], [4, 5]], [[1, 0], [0, 1]])==[[2, 0], [0, 5]]
  assert elementWiseProduct([[5, 6]], [[1, 1]])==[[5, 6]]
  assert elementWiseProduct([], [[1, 2]])==[]
  assert elementWiseProduct([[1, 2]], [])==[]
  assert elementWiseProduct([[1, 2], [3, 4]], [[1, 2]])=="Matrices dimensions mismatch."
output: def elementWiseProduct(A, B):
      if not A or not B:
          return []
      if len(A) != len(B) or any(len(rowA) != len(rowB) for rowA, rowB in zip(A, B)):
          return "Matrices dimensions mismatch."
      return [[A[i][j] * B[i][j] for j in range(len(A[0]))] for i in range(len(A))]