code: def test_eliminate_zeros():
      arr1d = coo_array(([0, 0, 1], ([1, 0, 1],)))
      assert arr1d.nnz == 3
      assert arr1d.count_nonzero() == 1
      assert np.array_equal(arr1d.toarray(), np.array([0, 1]))
      arr1d.eliminate_zeros()
      assert arr1d.nnz == 1
      assert arr1d.count_nonzero() == 1
      assert np.array_equal(arr1d.toarray(), np.array([0, 1]))
      assert np.array_equal(arr1d.col, np.array([1]))
      assert np.array_equal(arr1d.row, np.array([0]))
  
imports: import numpy
  import pytest
  from scipy.sparse import coo_array
label_desc: Use image node_id 19 for calling a global function with example usage: test_eliminate_zeros() without return types