code: def soft_sparsity_prox(tensor, threshold):
      """
      Projects the input tensor on the set of tensors with l1 norm smaller than threshold, using Soft Thresholding.
  
      Parameters
      ----------
      tensor : ndarray
      threshold :
  
      Returns
      -------
      ndarray
  
      References
      ----------
      .. [1]: Schenker, C., Cohen, J. E., & Acar, E. (2020). A Flexible Optimization Framework for
              Regularized Matrix-Tensor Factorizations with Linear Couplings.
              IEEE Journal of Selected Topics in Signal Processing.
  
      Notes
      -----
      .. math::
          \\begin{equation}
             \\lambda: prox_\\lambda (||tensor||_1) \\leq parameter
          \\end{equation}
      """
      return simplex_prox(tl.abs(tensor), threshold) * tl.sign(tensor)
  
file_path: tensorly/tensorly/tenalg/proximal.py
imports: import tensorly
  import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: soft_sparsity_prox(tensor, threshold) and returns: unknown