code: def test_1d_sparse_constructor():
      empty1d = coo_array((3,))
      res = coo_array(empty1d)
      assert res.shape == (3,)
      assert np.array_equal(res.toarray(), np.zeros((3,)))
  
imports: import numpy
  import pytest
  from scipy.sparse import coo_array
label_desc: Use image node_id 5 for calling a global function with example usage: test_1d_sparse_constructor() without return types