code: def test_dense_sst_to_dst(
      tensor, sst, expd_dst, unused1, dim, unused2, k
  ):
      """Tests fixed expected output DST tensor with fixed input dense and SST tensors."""
      sparser_2d = SignalSparsity(
          sst_top_k_element=k,
          sst_top_k_dim=dim,
          dst_top_k_element=k,
          dst_top_k_dim=dim,
      )
      dst = sparser_2d.dense_sst_to_dst(tensor, sst)
      objects_are_equal(
          dst, expd_dst, 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 8 for calling a global function with example usage: test_dense_sst_to_dst(tensor, sst, expd_dst, unused1, dim, unused2, k) without return types