code: def test_svd_compression_compresses_uses_compression_threshold():
      """If compression threshold is set, small singular values are truncated"""
      rng = tl.check_random_state(1234)
      slice = tl.tensor(rng.standard_normal((10, 5)), dtype=tl.float64)
      slice = tl.concatenate([slice, slice[:, -1:] + 1e-10], axis=1)
  
      compressed_slices, loadings = svd_compress_tensor_slices(
          [slice], compression_threshold=1e-5
      )
  
      assert tl.shape(compressed_slices[0]) == (5, 6)
      assert tl.shape(loadings[0]) == (10, 5)
  
file_path: tensorly/tensorly/tests/test_preprocessing.py
imports: import pytest
  from pytest import approx
  import numpy
  import tensorly
  from ..parafac2_tensor import parafac2_to_slices
  from ..random import random_parafac2
  from ..testing import assert_allclose
  from ..decomposition._parafac2 import parafac2, _parafac2_reconstruction_error
  from ..preprocessing import svd_compress_tensor_slices, svd_decompress_parafac2_tensor
label_desc: Use image node_id 4 for calling a global function with example usage: test_svd_compression_compresses_uses_compression_threshold() without return types