code: def tr_n_param(tensor_shape, rank):
      factor_params = []
      for i, s in enumerate(tensor_shape):
          factor_params.append(rank[i] * s * rank[i + 1])
      return ivy.sum(factor_params)
  
imports: from .base import FactorizedTensor
  import ivy
  import warnings
label_desc: Use image node_id 16 for calling the TRTensor obj's underlying member method code with example usage: obj.tr_n_param(tensor_shape, rank) and returns: ivy