code: def test_with_list(op):
      arr = SparseArray([0, 1], fill_value=0)
      result = op(arr, [0, 1])
      expected = op(arr, SparseArray([0, 1]))
      tm.assert_sp_array_equal(result, expected)
  
imports: import operator
  import numpy
  import pytest
  import pandas
  from pandas import SparseDtype
  import pandas._testing
  from pandas.core.arrays.sparse import SparseArray
label_desc: Use image node_id 3 for calling a global function with example usage: test_with_list(op) without return types