code: def tucker_n_param(shape, rank):
      core_params = ivy.prod(rank)
      factors_params = ivy.sum([r * s for (r, s) in zip(rank, shape)])
      return int(core_params + factors_params)
  
imports: from .base import FactorizedTensor
  import ivy
  from copy import deepcopy
  import warnings
label_desc: Use image node_id 20 for calling the TuckerTensor obj's underlying member method code with example usage: obj.tucker_n_param(shape, rank) and returns: int