code: def test_sst_disabled():
      """Tests the case where SST is disabled."""
      dense = torch.tensor([0.5000, 0.6000, 0.7000, 0.8000])
      result = torch.tensor([0.0, 0.0, 0.7000, 0.8000])
      sparser = SignalSparsity(dst_top_k_element=2, dst_top_k_dim=0)
      rt, sst, dst = sparser.lossy_compress(dense)
      objects_are_equal(
          rt, result, raise_exception=True, rtol=RTOL, atol=ATOL
      )
      objects_are_equal(
          dst, result, raise_exception=True, rtol=RTOL, atol=ATOL
      )
      assert sst is None
  
file_path: fairscale/tests/experimental/wgit/test_signal_sparsity.py
imports: import pytest
  import torch
  from fairscale.experimental.wgit.signal_sparsity import SignalSparsity, random_sparse_mask
  from fairscale.fair_dev.testing.testing import objects_are_equal
label_desc: Use image node_id 12 for calling a global function with example usage: test_sst_disabled() without return types