code: def test_1d_tuple_constructor_with_shape():
      res = coo_array(([9, 8], ([1, 2],)), shape=(4,))
      assert res.shape == (4,)
      assert np.array_equal(res.toarray(), np.array([0, 9, 8, 0]))
  
imports: import numpy
  import pytest
  from scipy.sparse import coo_array
label_desc: Use image node_id 7 for calling a global function with example usage: test_1d_tuple_constructor_with_shape() without return types