code: def test_cp_norm(shape, rank, tol):
      cp_tensor = ivy.random_cp(
          shape, rank, full=False, normalise_factors=True
      )
      rec = ivy.CPTensor.cp_to_tensor(cp_tensor)
      true_res = ivy.sqrt(ivy.sum(ivy.square(rec)))
      res = ivy.CPTensor.cp_norm(cp_tensor)
      assert ivy.abs(true_res - res) <= tol
  
file_path: ivy/ivy_tests/test_ivy/test_misc/test_factorized_tensor/test_cp_tensor.py
imports: import ivy
  import numpy
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_cp_norm(shape, rank, tol) without return types