code: def test_svd_thresholding():
      """Test for singular_value_thresholding operator"""
      U = T.tensor([[1, 0, 0], [0, 1, 0], [0, 0, 1]])
      singular_values = T.tensor([0.4, 2.1, -2])
      tensor = T.dot(
          U, T.reshape(singular_values, (-1, 1)) * T.transpose(U)
      )
      shrinked_singular_values = T.tensor([0, 1.6, -1.5])
      true_res = T.dot(
          U,
          T.reshape(shrinked_singular_values, (-1, 1)) * T.transpose(U),
      )
      res = svd_thresholding(tensor, 0.5)
      assert_array_almost_equal(true_res, res)
  
imports: import numpy
  from ...None import backend
  from ..proximal import svd_thresholding, smoothness_prox, soft_thresholding, hals_nnls, fista, active_set_nnls, procrustes, hard_thresholding, soft_sparsity_prox, simplex_prox, normalized_sparsity_prox, monotonicity_prox, unimodality_prox, l2_prox, l2_square_prox, admm
  from ...testing import assert_, assert_array_equal, assert_array_almost_equal
  from tensorly import tensor_to_vec, truncated_svd
  import pytest
label_desc: Use image node_id 11 for calling a global function with example usage: test_svd_thresholding() without return types