code: def test_apply_parafac2_projections(
      weights, factors, projections, true_res
  ):
      weights = ivy.array(weights)
      factors = [ivy.array(f) for f in factors]
      projections = [ivy.array(p) for p in projections]
      true_res = [ivy.array(t) for t in true_res]
      (
          new_weights,
          projected_factors,
      ) = ivy.Parafac2Tensor.apply_parafac2_projections(
          (weights, factors, projections)
      )
      np.allclose(new_weights, weights)
      for i, Bi in enumerate(projected_factors[1]):
          np.allclose(ivy.dot(projections[i], factors[1]), Bi)
  
file_path: ivy/ivy_tests/test_ivy/test_misc/test_factorized_tensor/test_parafac2_tensor.py
imports: import ivy
  import numpy
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_apply_parafac2_projections(weights, factors, projections, true_res) without return types