code: def test_dense_to_sst(
      tensor, expd_sst, unused1, unused2, dim, unused3, k
  ):
      """Tests for fixed input dense tensor and fixed expected output SST tensor."""
      sparser_2d = SignalSparsity(
          sst_top_k_element=k, sst_top_k_dim=dim, dst_top_k_percent=100
      )
      sst = sparser_2d.dense_to_sst(tensor)
      objects_are_equal(
          sst, expd_sst, raise_exception=True, rtol=RTOL, atol=ATOL
      )
  
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 6 for calling a global function with example usage: test_dense_to_sst(tensor, expd_sst, unused1, unused2, dim, unused3, k) without return types