code: def test_ndarray_inplace():
      sparray = SparseArray([0, 2, 0, 0])
      ndarray = np.array([0, 1, 2, 3])
      ndarray += sparray
      expected = np.array([0, 3, 2, 3])
      tm.assert_numpy_array_equal(ndarray, 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 8 for calling a global function with example usage: test_ndarray_inplace() without return types