code: def __init__(self, cp_tensor):
      super().__init__()
  
      shape, rank = ivy.CPTensor.validate_cp_tensor(cp_tensor)
      weights, factors = cp_tensor
  
      if weights is None:
          weights = ivy.ones(rank, dtype=factors[0].dtype)
  
      self.shape = shape
      self.rank = rank
      self.factors = factors
      self.weights = weights
  
imports: from .base import FactorizedTensor
  import ivy
label_desc: Use image node_id 1 to create a new CPTensor object from inherited base classes: FactorizedTensor with example: obj = CPTensor(cp_tensor)