code: def sparse_cls(request):
      return getattr(sparse, request.param)
  
imports: import pytest
  import numpy
  import scipy.sparse
  import scipy.sparse.linalg
  from numpy.testing import assert_allclose
label_desc: Use image node_id 1 for calling a global function with example usage: sparse_cls(request) and returns: getattr