code: def test_sparse():
      from lasagne.init import Sparse
  
      sample = Sparse(sparsity=0.1).sample((10, 20))
      assert (sample != 0.0).sum() == (10 * 20) * 0.1
  
imports: import pytest
label_desc: Use image node_id 31 for calling a global function with example usage: test_sparse() without return types