code: def test_parafac2_normalise(shape, rank):
      parafac2_tensor = ivy.random_parafac2(shape, rank)
  
      normalised_parafac2_tensor = (
          ivy.Parafac2Tensor.parafac2_normalise(parafac2_tensor)
      )  # , copy=copy)
      expected_norm = ivy.ones((rank,))
      for f in normalised_parafac2_tensor[1]:
          norm = ivy.sqrt(ivy.sum(ivy.square(f), axis=0))
          assert np.allclose(norm, expected_norm)
      assert np.allclose(
          ivy.Parafac2Tensor.parafac2_to_tensor(parafac2_tensor),
          ivy.Parafac2Tensor.parafac2_to_tensor(
              normalised_parafac2_tensor
          ),
      )
  
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 2 for calling a global function with example usage: test_parafac2_normalise(shape, rank) without return types