code: def test_sparse_unary():
      s1 = SparseNDArray(s1_data)
      v = SparseNDArray(v1, shape=(3,))
  
      for method in (
          "negative",
          "positive",
          "absolute",
          "abs",
          "fabs",
          "rint",
          "sign",
          "conj",
          "exp",
          "exp2",
          "log",
          "log2",
          "log10",
          "expm1",
          "log1p",
          "sqrt",
          "square",
          "cbrt",
          "reciprocal",
          "sin",
          "cos",
          "tan",
          "arcsin",
          "arccos",
          "arctan",
          "arcsinh",
          "arccosh",
          "arctanh",
          "deg2rad",
          "rad2deg",
          "angle",
          "isnan",
          "isinf",
          "signbit",
          "sinc",
          "isreal",
          "isfinite",
      ):
          lm, rm = getattr(mls, method), getattr(np, method)
          r = sps.csr_matrix(
              (rm(s1.data), s1.indices, s1.indptr), s1.shape
          )
          assert_array_equal(lm(s1), r)
          assert_array_equal(lm(v), rm(v1_data))
  
imports: import pickle
  import numpy
  import pytest
  import scipy.sparse
  from ...None import sparse
  from ..None import SparseNDArray, SparseVector, SparseMatrix
  from ..core import issparse
label_desc: Use image node_id 11 for calling a global function with example usage: test_sparse_unary() without return types