code: def test_n_param_tucker(shape, rank):
      tucker_tensor = ivy.random_tucker(shape, rank)
      true_n_param = ivy.prod(ivy.shape(tucker_tensor[0])) + ivy.sum(
          [ivy.prod(ivy.shape(f)) for f in tucker_tensor[1]]
      )
      n_param = tucker_tensor.n_param
      assert np.allclose(n_param, true_n_param)
  
file_path: ivy/ivy_tests/test_ivy/test_misc/test_factorized_tensor/test_tucker_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_n_param_tucker(shape, rank) without return types