code: def test_tt_n_param(shape, rank):
      factors = ivy.random_tt(shape, rank)
      true_n_param = ivy.sum([ivy.prod(f.shape) for f in factors])
      n_param = ivy.TTTensor._tt_n_param(shape, rank)
      np.testing.assert_equal(n_param, true_n_param)
  
file_path: ivy/ivy_tests/test_ivy/test_misc/test_factorized_tensor/test_tt_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_tt_n_param(shape, rank) without return types